cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Security Notice: CVE-2026-109618 and CVE-2026-109619

    JMP promptly initiated a review of its products, services, and relevant infrastructure for exposure to CVE-2026-109618 and CVE-2026-109619.

    Our assessment of JMP products has not identified exposure to these vulnerabilities. Where remediation was required within supporting environments, appropriate security updates and controls have been applied and validated.

    We have identified no evidence of successful exploitation or unauthorized access to JMP systems or customer information associated with these vulnerabilities.

    JMP continues to monitor the issue and relevant vendor guidance. No action is required by JMP customers at this time.

  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar

How to script frame size of fits in fit curve platform with group variable

Hi all!

 

In JMP 15 it was easy to modify the frame size of the fits in the fit curve platform using a group variable.

In JMP 17 it seems to be different. Even if I modify the frame sizes manually and I try to get the appropriate script by using "Save By-Group Script to Script Window" I don't get a script with modified frame sizes.

 

For example I may use the following script:

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
obj = dt << Fit Curve(
	Y( :weight ),
	X( :height ),
	Group( :sex ),
	Fit Linear,
	SendToReport(
		Dispatch(
			{"Plot"},
			"Fit Curve Report",
			FrameBox,
			{Frame Size( 316, 134 ), Marker Drawing Mode( "Normal" )}
		),
		Dispatch(
			{"Plot"},
			"Fit Curve Report",
			FrameBox( 2 ),
			{Frame Size( 316, 134 ), Marker Drawing Mode( "Normal" )}
		),
		Dispatch(
			{"Plot"},
			"Fit Curve Report",
			FrameBox( 3 ),
			{Frame Size( 316, 134 ), Marker Drawing Mode( "Normal" )}
		)
	)
);

My question is how to modify the frame size of the linear fits:

PolygonStallion_0-1698561812064.png

Sorry, if the issue was already posted.

Many thanks in advance for your help.

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to script frame size of fits in fit curve platform with group variable

I would use XPath to get the reference to all Frameboxes and then pick from those all I want to modify. Below is example where the size of all frameboxes is modified

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
obj = dt << Fit Curve(Y(:weight), X(:height), Group(:sex), Fit Linear);

fbs = Report(obj) << XPath("//FrameBox");

wait(1); // for demo purposes

fbs << Frame Size(316, 134);
-Jarmo

View solution in original post

3 REPLIES 3
jthi
Super User

Re: How to script frame size of fits in fit curve platform with group variable

I would use XPath to get the reference to all Frameboxes and then pick from those all I want to modify. Below is example where the size of all frameboxes is modified

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
obj = dt << Fit Curve(Y(:weight), X(:height), Group(:sex), Fit Linear);

fbs = Report(obj) << XPath("//FrameBox");

wait(1); // for demo purposes

fbs << Frame Size(316, 134);
-Jarmo

Re: How to script frame size of fits in fit curve platform with group variable

Hi jthi,

Many thanks for your reply. Your solution works very well.

 

I'm just wondering why it's not possible to manually resize the window to generate a script that does the same thing.

jthi
Super User

Re: How to script frame size of fits in fit curve platform with group variable

Quickly checking it seems like JMP isn't able to capture the modifications done to the FrameBoxes which are within Linear outlinebox.

-Jarmo

Recommended Articles