cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
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 XII

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 XII

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?