BookmarkSubscribe
Choose Language Hide Translation Bar
Stokes
Community Trekker

JSL: How to add graph to an existing window

Hi, I am using JSL to plot with graph builder.

Every graph usally created in a seperate window which opens too many window.

I want to put each graph into the same window then close the new created window.

Below are my draft jsl, can anyone help me to make it work?

Thank you.

 

 

WW1 = New Window( "graph1", Graph Builder() );
Window( "graph1" ) << Close Window();

WW2 = New Window( "graph2", Graph Builder() );
Window( "graph2" ) << Close Window();

WW3 = New Window( "graph3", Graph Builder() );
Window( "graph3" ) << Close Window();

 

0 Kudos
2 REPLIES 2
Highlighted
txnelson
Super User

Re: JSL: How to add graph to an existing window

Here are two ways to have multiple outputs in one window.  There are other ways too

names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");

nw=new window("Example 1",
	bivariate(x(:height), y(:weight)),
	oneway(x(:sex),y(:weight))
);

nw2=new window("Example 2");
nw2<<append(bivariate(x(:height), y(:weight)));
nw2<<append(oneway(x(:sex),y(:weight)));
Jim
Craige_Hales
Staff (Retired)

Re: JSL: How to add graph to an existing window

The journal window might be a solution as well. Send the <<journal command to the windows before you close them. The journal window keeps a tall list of the entries.

Craige