Choose Language Hide Translation Bar
Highlighted
Thierry_S
Level VI

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
Highlighted
Craige_Hales
Staff (Retired)

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

Highlighted

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
Highlighted
Craige_Hales
Staff (Retired)

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

Highlighted

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

Article Labels

    There are no labels assigned to this post.