<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: JSL: How to add graph to an existing window in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/221205#M44151</link>
    <description>&lt;P&gt;The journal window might be a solution as well. Send the &amp;lt;&amp;lt;journal command to the windows before you close them. The journal window keeps a tall list of the entries.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 16:41:51 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2019-08-09T16:41:51Z</dc:date>
    <item>
      <title>JSL: How to add graph to an existing window</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/221007#M44107</link>
      <description>&lt;P&gt;Hi, I am using JSL to plot with graph builder.&lt;/P&gt;
&lt;P&gt;Every graph usally created in a seperate window which opens too many window.&lt;/P&gt;
&lt;P&gt;I want to put each graph into the same window then close the new created window.&lt;/P&gt;
&lt;P&gt;Below are my draft jsl, can anyone help me to make it work?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;WW1 = New Window( "graph1", Graph Builder() );
Window( "graph1" ) &amp;lt;&amp;lt; Close Window();

WW2 = New Window( "graph2", Graph Builder() );
Window( "graph2" ) &amp;lt;&amp;lt; Close Window();

WW3 = New Window( "graph3", Graph Builder() );
Window( "graph3" ) &amp;lt;&amp;lt; Close Window();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 12:41:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/221007#M44107</guid>
      <dc:creator>Stokes</dc:creator>
      <dc:date>2019-08-09T12:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to add graph to an existing window</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/221040#M44112</link>
      <description>&lt;P&gt;Here are two ways to have multiple outputs in one window.&amp;nbsp; There are other ways too&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;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&amp;lt;&amp;lt;append(bivariate(x(:height), y(:weight)));
nw2&amp;lt;&amp;lt;append(oneway(x(:sex),y(:weight)));
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Aug 2019 19:38:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/221040#M44112</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-08-08T19:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to add graph to an existing window</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/221205#M44151</link>
      <description>&lt;P&gt;The journal window might be a solution as well. Send the &amp;lt;&amp;lt;journal command to the windows before you close them. The journal window keeps a tall list of the entries.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 16:41:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/221205#M44151</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2019-08-09T16:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to add graph to an existing window</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/230905#M45795</link>
      <description>&lt;P&gt;I used journal before, but journal will freeze the graph, meaning I can not select the the data in the graph anymore, it is more like a picture.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;The journal window might be a solution as well. Send the &amp;lt;&amp;lt;journal command to the windows before you close them. The journal window keeps a tall list of the entries.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 21:10:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/230905#M45795</guid>
      <dc:creator>Stokes</dc:creator>
      <dc:date>2019-10-25T21:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to add graph to an existing window</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/230916#M45796</link>
      <description>&lt;P&gt;Thanks for the solution, for some reason it doesn't work in my script.&lt;/P&gt;&lt;P&gt;Can you help to modify based on my script below?&lt;/P&gt;&lt;P&gt;I am ploting over 200 graph which can only be done with graph builder.&lt;/P&gt;&lt;P&gt;So I hope to add the graph to a same window graph, then close the graph builder window after ploting.&lt;/P&gt;&lt;P&gt;Otherwise, I end up open 200 windows.&lt;/P&gt;&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;WW1 &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;New Window&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"graph1"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; Graph Builder&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
Window&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"graph1"&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token messages"&gt; Close Window&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

WW2 &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;New Window&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"graph2"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; Graph Builder&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
Window&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"graph2"&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token messages"&gt; Close Window&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

WW3 &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;New Window&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"graph3"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; Graph Builder&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
Window&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"graph3"&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token messages"&gt; Close Window&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Here are two ways to have multiple outputs in one window.&amp;nbsp; There are other ways too&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;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&amp;lt;&amp;lt;append(bivariate(x(:height), y(:weight)));
nw2&amp;lt;&amp;lt;append(oneway(x(:sex),y(:weight)));&lt;/CODE&gt;&lt;/PRE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 21:13:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/230916#M45796</guid>
      <dc:creator>Stokes</dc:creator>
      <dc:date>2019-10-25T21:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to add graph to an existing window</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/230925#M45798</link>
      <description>&lt;P&gt;Take a look at this example.&amp;nbsp; It creates one window with 20 graphs defined for it, with no additional graphs being created&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );

nw = New Window( "graphs", myvlb = V List Box() );

colNamesList = dt &amp;lt;&amp;lt; get column names( continuous, string );

For( i = 1, i &amp;lt;= 20, i++,
	myvlb &amp;lt;&amp;lt; append( oneway( x( :site ), y( Column( colNamesList[i] ) ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Oct 2019 21:44:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/230925#M45798</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-10-25T21:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to add graph to an existing window</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/230926#M45799</link>
      <description>&lt;P&gt;Thank you for the help.&lt;/P&gt;&lt;P&gt;I will try to put this with my scripts.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Take a look at this example.&amp;nbsp; It creates one window with 20 graphs defined for it, with no additional graphs being created&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );

nw = New Window( "graphs", myvlb = V List Box() );

colNamesList = dt &amp;lt;&amp;lt; get column names( continuous, string );

For( i = 1, i &amp;lt;= 20, i++,
	myvlb &amp;lt;&amp;lt; append( oneway( x( :site ), y( Column( colNamesList[i] ) ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 22:03:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/230926#M45799</guid>
      <dc:creator>Stokes</dc:creator>
      <dc:date>2019-10-25T22:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to add graph to an existing window</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/230950#M45802</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/9711"&gt;@Stokes&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt; and &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt; gave good examples. another way to do it is to start with just one window. if you have a data table open, try using this script.&amp;nbsp;once you make the graphs you want in that window you can save the script from the plot.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New window ("lots of graphs",
	v list box (
		Graph Builder(),
		Graph Builder(),
		Graph Builder(),
		Graph Builder(),
		Graph Builder(),
		Graph Builder(),
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Oct 2019 08:54:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-add-graph-to-an-existing-window/m-p/230950#M45802</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2019-10-26T08:54:37Z</dc:date>
    </item>
  </channel>
</rss>

