<?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: New to JSL - Clear selection, invisible usage in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/New-to-JSL-Clear-selection-invisible-usage/m-p/44027#M25398</link>
    <description>&lt;P&gt;I can answer a few of your questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. You need to clear any selections made in your table. &amp;nbsp;You can do this via:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; clear select;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where dt points to your data table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. After creating your graph, add a filter by clicking on the little red triangle&lt;STRONG&gt; &amp;gt; Script &amp;gt; Local Data Filter&lt;/STRONG&gt;. &amp;nbsp;Then add one or more variables as a filter column. &amp;nbsp;Now click the little red triangle next to Graph Builder and select &lt;STRONG&gt;Copy Script&lt;/STRONG&gt;. &amp;nbsp;Here's an example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = open("$sample_data\Big Class.jmp");

Graph Builder(
	Size( 526, 451 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 12 ) ), Smoother( X, Y, Legend( 13 ) ) ),
	Local Data Filter( Add Filter( columns( :sex ) ) )
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Sep 2017 18:21:03 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2017-09-07T18:21:03Z</dc:date>
    <item>
      <title>New to JSL - Clear selection, invisible usage</title>
      <link>https://community.jmp.com/t5/Discussions/New-to-JSL-Clear-selection-invisible-usage/m-p/44022#M25396</link>
      <description>&lt;P&gt;I am very new to JSL, couple of questions:&lt;/P&gt;&lt;P&gt;1). I am setting up a script to plot bar graphs and send to ppt. After the script runs, the final bars in the graph window are selected (see diagonal shading on the bars). I want to unselect these bars&amp;nbsp;&amp;nbsp;before sliding them to the ppt. (see attachment). I need to find the command to unmark the selection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2). I want to close the data table after making all the graphs and saving them to ppt. IF I use the command close (dt); where dt is my data table - this closes the data table and no graphs are produced.&lt;/P&gt;&lt;P&gt;3). I need to apply multiple data filters for various graphs in the same script. Is there a sample script that shows how to do it? I have tried using 'local' filter but that confines the filter and does not apply it to my graph. I have tried using dt&amp;lt;&amp;lt; clear row states; before applying the new filter but that is not working either.&lt;/P&gt;&lt;P&gt;4). Is there a sample script showing how to use 'invisble' for graph windows?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 17:51:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/New-to-JSL-Clear-selection-invisible-usage/m-p/44022#M25396</guid>
      <dc:creator>AmberA</dc:creator>
      <dc:date>2017-09-07T17:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: New to JSL - Clear selection, invisible usage</title>
      <link>https://community.jmp.com/t5/Discussions/New-to-JSL-Clear-selection-invisible-usage/m-p/44026#M25397</link>
      <description>&lt;PRE&gt;&amp;nbsp;// Open Sample Data &lt;BR /&gt;dt = Open("$SAMPLE_DATA/Big Class.jmp"); &lt;BR /&gt;&lt;BR /&gt;// Select rows &lt;BR /&gt;dt &amp;lt;&amp;lt; select Where(:age ==12); &lt;BR /&gt;&lt;BR /&gt;// Clear Selection &lt;BR /&gt;dt &amp;lt;&amp;lt; clear select&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;For question # 1 - see above example&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;Graph1 &amp;lt;&amp;lt; Show Window(0); &lt;/PRE&gt;&lt;P&gt;Fow question #4 - above code should hide the window or make it "invisible" - where Graph1 represents the graph window&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For question # 2 ,&amp;nbsp;&lt;BR /&gt;- Save the graphs to the ppt first and close the ppt and then close the data table - this should fix it .&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For question &amp;nbsp;#3 ,&amp;nbsp;&lt;BR /&gt;&amp;nbsp;- Can you provide sample code of what you are trying to do - this should be easy .&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Uday&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 18:17:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/New-to-JSL-Clear-selection-invisible-usage/m-p/44026#M25397</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2017-09-07T18:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: New to JSL - Clear selection, invisible usage</title>
      <link>https://community.jmp.com/t5/Discussions/New-to-JSL-Clear-selection-invisible-usage/m-p/44027#M25398</link>
      <description>&lt;P&gt;I can answer a few of your questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. You need to clear any selections made in your table. &amp;nbsp;You can do this via:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; clear select;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where dt points to your data table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. After creating your graph, add a filter by clicking on the little red triangle&lt;STRONG&gt; &amp;gt; Script &amp;gt; Local Data Filter&lt;/STRONG&gt;. &amp;nbsp;Then add one or more variables as a filter column. &amp;nbsp;Now click the little red triangle next to Graph Builder and select &lt;STRONG&gt;Copy Script&lt;/STRONG&gt;. &amp;nbsp;Here's an example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = open("$sample_data\Big Class.jmp");

Graph Builder(
	Size( 526, 451 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 12 ) ), Smoother( X, Y, Legend( 13 ) ) ),
	Local Data Filter( Add Filter( columns( :sex ) ) )
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Sep 2017 18:21:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/New-to-JSL-Clear-selection-invisible-usage/m-p/44027#M25398</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-09-07T18:21:03Z</dc:date>
    </item>
  </channel>
</rss>

