cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • See how to use the JMP Marketplace – Free tools to expand JMP capabilities. Register. July 10, 2 pm US Eastern Time.

Discussions

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

JMP 17 script graph size for report

Is there a way to set the frame size for graphs in jmp 17 script so that when the report is generated with multiple graphs the graphs are of a particular size. Ideally want to be able to customize each individual graph size

The script below used to work and set the size correctly in jmp 14 but it does not do the job in jmp 17

 

graphname = datatable << Overlay Plot(
	X(:x),
	Y(:y1, :y2, :y3),
	Overlay Axis << {{Scale(Linear), Format("Best"), Min(-5000), Max(25000), Inc(-1000)}},
	Connect Thru Missing(1),
	Connect Points(1),
	SendToReport(
		Dispatch({}, "Overlay Plot", OutlineBox, Set Title("Age")),
		Dispatch({}, "Overlay Plot", FrameBox, Frame Size(450, 450)),
		Dispatch({}, "101", ScaleBox, {Rotated Labels("Angled")})
	)
);

Edit 2024-07-24, jthi: added JSL styling

2 REPLIES 2
hogi
Level XIII

Re: JMP 17 script graph size for report

[edited]
actually, the command

current report()[framebox(1)]<<frame size(450,450);

should work. What's the issue?

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Overlay Plot(
	X( :height ),
	Y( :weight, :age ),
	Overlay Axis << {{Scale( Linear ), Format( "Best" ), Min( -5000 ), Max( 25000 ), Inc( -1000 )}},
	Connect Thru Missing( 1 ),
	Connect Points( 1 ),
	SendToReport(
		Dispatch( {}, "Overlay Plot", FrameBox, Frame Size( 450, 450 ) )
	)
);
hogi
Level XIII

Re: JMP 17 script graph size for report

To customize each individual graph size, like here:

hogi_0-1721802519208.png

 

use 

Relative Sizes( "X", [157 427] )

from Subplots with different sizes? 

Recommended Articles