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
Thierry_S
Super User

Graph Builder: how to create plots with frame larger than the window size?

Hi JMP Community,

I need to create a large figures for a poster that ideally would need to be taller than the maximum frame size (on my system, it maxes out at 835). Is it possible to do so? I tried to force the vertical size of the frame via a script but I did not get what I wanted.

 

The alternative is to draw my plots at the maximum allowed size, export to EPS and rescale it to the desired vertical dimensions which is a bit of a drag considering that text gets messed up when exporting to EPS.

 

Any thoughts,

 

Thanks,

TS

Thierry R. Sornasse
2 ACCEPTED SOLUTIONS

Accepted Solutions
Craige_Hales
Super User

Re: Graph Builder: how to create plots with frame larger than the window size?

this works by never using the display:

dt=open("$sample_data/big class.jmp");

nodisplay = borderbox(
dt<<Graph Builder(
	Size( 5180, 4480 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 4 ) ), Smoother( X, Y, Legend( 5 ) ) )
)
);

nodisplay<<savepicture("$temp/deleteme.png","png");

nodisplay=0; // let go of the hidden report

pic=newimage("$temp/deleteme.png"); 
newwindow("x",pic);
show(pic<<size); // pic << size = {5304, 4518};
pic=0; // let go of the picture
deletefile("$temp/deleteme.png");

The platform uses the borderbox as its parent, and the JSL variable holds the borderbox. The window that opens with the picture has scroll bars; it is a static image of the live report that is not otherwise visible.

Craige

View solution in original post

Re: Graph Builder: how to create plots with frame larger than the window size?

Another solution is to add:

 

Fit to Window("off")

 

to your Graph Builder script.  This will turn off the auto-stretching of the graph and still allow you to preview the result in a (scrollable) window.

View solution in original post

2 REPLIES 2
Craige_Hales
Super User

Re: Graph Builder: how to create plots with frame larger than the window size?

this works by never using the display:

dt=open("$sample_data/big class.jmp");

nodisplay = borderbox(
dt<<Graph Builder(
	Size( 5180, 4480 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 4 ) ), Smoother( X, Y, Legend( 5 ) ) )
)
);

nodisplay<<savepicture("$temp/deleteme.png","png");

nodisplay=0; // let go of the hidden report

pic=newimage("$temp/deleteme.png"); 
newwindow("x",pic);
show(pic<<size); // pic << size = {5304, 4518};
pic=0; // let go of the picture
deletefile("$temp/deleteme.png");

The platform uses the borderbox as its parent, and the JSL variable holds the borderbox. The window that opens with the picture has scroll bars; it is a static image of the live report that is not otherwise visible.

Craige

Re: Graph Builder: how to create plots with frame larger than the window size?

Another solution is to add:

 

Fit to Window("off")

 

to your Graph Builder script.  This will turn off the auto-stretching of the graph and still allow you to preview the result in a (scrollable) window.