<?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: Using JSL to Plot Multiple Series on One Graph in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Using-JSL-to-Plot-Multiple-Series-on-One-Graph/m-p/256406#M50374</link>
    <description>&lt;P&gt;Does this really need to be in a script?&lt;/P&gt;
&lt;P&gt;Using Graph Builder, I drag Y to the Y-zone.&lt;/P&gt;
&lt;P&gt;I select both X1 and X2 and drag to the X-zone. I turn off the smoother and this is my result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dan_Obermiller_0-1586205516428.png" style="width: 563px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22812i6DAD4F98F9C91045/image-dimensions/563x330?v=v2" width="563" height="330" role="button" title="Dan_Obermiller_0-1586205516428.png" alt="Dan_Obermiller_0-1586205516428.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now click the gray triangle next to variables. I can clear either X1 or X2 (they are check boxes) and the graph updates immediately. Clicking again would add that variable back to the plot. I think that the interactive functionality is already there.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dan_Obermiller_1-1586205657853.png" style="width: 558px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22813i20F684E96838BB88/image-dimensions/558x327?v=v2" width="558" height="327" role="button" title="Dan_Obermiller_1-1586205657853.png" alt="Dan_Obermiller_1-1586205657853.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Apr 2020 20:41:32 GMT</pubDate>
    <dc:creator>Dan_Obermiller</dc:creator>
    <dc:date>2020-04-06T20:41:32Z</dc:date>
    <item>
      <title>Using JSL to Plot Multiple Series on One Graph</title>
      <link>https://community.jmp.com/t5/Discussions/Using-JSL-to-Plot-Multiple-Series-on-One-Graph/m-p/256401#M50373</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to plot multiple series as a function of the same variable on a graph.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, here is the type of data I want to plot:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;&lt;STRONG&gt;y&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;&lt;STRONG&gt;x1&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;&lt;STRONG&gt;x2&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;12&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;14&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;2&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;25&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;28&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;36&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;38&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;4&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;54&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;49&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;5&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;68&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;86&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All I have found so far is a way to plot multiple series on different graphs but never multiple series on the same graph. I want to have checkboxes that allow me to select the series I want to plot and I want those series to show up on the same graph so that I can look at them together. Can someone help me to do this using a JSL script? Thank you,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jordan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 21:10:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-JSL-to-Plot-Multiple-Series-on-One-Graph/m-p/256401#M50373</guid>
      <dc:creator>Jordan_T</dc:creator>
      <dc:date>2020-04-06T21:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using JSL to Plot Multiple Series on One Graph</title>
      <link>https://community.jmp.com/t5/Discussions/Using-JSL-to-Plot-Multiple-Series-on-One-Graph/m-p/256406#M50374</link>
      <description>&lt;P&gt;Does this really need to be in a script?&lt;/P&gt;
&lt;P&gt;Using Graph Builder, I drag Y to the Y-zone.&lt;/P&gt;
&lt;P&gt;I select both X1 and X2 and drag to the X-zone. I turn off the smoother and this is my result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dan_Obermiller_0-1586205516428.png" style="width: 563px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22812i6DAD4F98F9C91045/image-dimensions/563x330?v=v2" width="563" height="330" role="button" title="Dan_Obermiller_0-1586205516428.png" alt="Dan_Obermiller_0-1586205516428.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now click the gray triangle next to variables. I can clear either X1 or X2 (they are check boxes) and the graph updates immediately. Clicking again would add that variable back to the plot. I think that the interactive functionality is already there.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dan_Obermiller_1-1586205657853.png" style="width: 558px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22813i20F684E96838BB88/image-dimensions/558x327?v=v2" width="558" height="327" role="button" title="Dan_Obermiller_1-1586205657853.png" alt="Dan_Obermiller_1-1586205657853.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 20:41:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-JSL-to-Plot-Multiple-Series-on-One-Graph/m-p/256406#M50374</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2020-04-06T20:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using JSL to Plot Multiple Series on One Graph</title>
      <link>https://community.jmp.com/t5/Discussions/Using-JSL-to-Plot-Multiple-Series-on-One-Graph/m-p/256430#M50379</link>
      <description>&lt;P&gt;Dan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response. Maybe my example lead to misunderstanding. I will have not two, but about 15-20 different series that I would like to plot. I would rather not drag and drop but have a dialogue box with checkboxes allowing me to show any of these various series. Thank you again,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jordan&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 21:41:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-JSL-to-Plot-Multiple-Series-on-One-Graph/m-p/256430#M50379</guid>
      <dc:creator>Jordan_T</dc:creator>
      <dc:date>2020-04-06T21:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using JSL to Plot Multiple Series on One Graph</title>
      <link>https://community.jmp.com/t5/Discussions/Using-JSL-to-Plot-Multiple-Series-on-One-Graph/m-p/256452#M50382</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/18235"&gt;@Jordan_T&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am pretty sure that Dan understood your request, but I think he was checking out if being able to use a drag and drop scenario would meet your users needs, and thusly, eliminate the need to write and support some JSL application.&amp;nbsp; I am making a similar but different proposal.&amp;nbsp; JMP has a built in check box selector called a Data Filter or a Local Data Filter.&amp;nbsp; It lets the user just click on the selection boxes, and change the makeup of the graph or analysis, etc.&amp;nbsp; Below is an example of what such the simple application I put together looks like.&amp;nbsp; I have attached a sample data table, that has an embedded script in it, that brings up the below Graph Builder example.&amp;nbsp; This may be a route you may want to pursue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="local.PNG" style="width: 883px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22820i74E4DF66A614CBDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="local.PNG" alt="local.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 22:34:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-JSL-to-Plot-Multiple-Series-on-One-Graph/m-p/256452#M50382</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-06T22:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using JSL to Plot Multiple Series on One Graph</title>
      <link>https://community.jmp.com/t5/Discussions/Using-JSL-to-Plot-Multiple-Series-on-One-Graph/m-p/256592#M50415</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;This looks like something I would like to implement. I am not sure how to do that in my case. Every time I try to do what you did and add a filter, the filter does not look like what it did in your example. I will attach something to this reply. Are you able to help me create that filter such that the y-values will stay the same, but I can choose whichever of "x1" to "x5" I want to plot, where x=f(y)? Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jordan&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 17:22:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-JSL-to-Plot-Multiple-Series-on-One-Graph/m-p/256592#M50415</guid>
      <dc:creator>Jordan_T</dc:creator>
      <dc:date>2020-04-07T17:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using JSL to Plot Multiple Series on One Graph</title>
      <link>https://community.jmp.com/t5/Discussions/Using-JSL-to-Plot-Multiple-Series-on-One-Graph/m-p/256621#M50419</link>
      <description>&lt;P&gt;Let me walk you through the steps necessary to generate the chart I displayed in my last response.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open the data table you provided in your latest response.&amp;nbsp; Table jmp_filter_help&lt;/LI&gt;
&lt;LI&gt;The X columns need to be stacked to work properly with the Filter that is going to be used, so go to the pull down menus at the top of the data table and select &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Tables==Stack&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filter1.PNG" style="width: 546px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22839i7589EB87AD4C5B38/image-size/large?v=v2&amp;amp;px=999" role="button" title="filter1.PNG" alt="filter1.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Select the 5 X columns as move them to the Stack Columns selection box and then click OK&lt;/LI&gt;
&lt;LI&gt;A new data table is displayed with all of the x columns stacked.&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filter2.PNG" style="width: 448px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22842iCF226E07F51ED532/image-size/large?v=v2&amp;amp;px=999" role="button" title="filter2.PNG" alt="filter2.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Go to the pull down menus at the top of the stacked data table and select &amp;nbsp; &amp;nbsp; Graph==&amp;gt;Graph Builder&lt;/LI&gt;
&lt;LI&gt;In the Graph Builder display, drag the Y column to the Y drop area and the Data column to the X drop area .&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filter3.PNG" style="width: 961px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22843iE96800528E318F3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="filter3.PNG" alt="filter3.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Click on the center of the graph and select Smoother==&amp;gt;Remove&lt;/LI&gt;
&lt;LI&gt;Drag the Label column to the Overlay drop area&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filter4.PNG" style="width: 953px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22844i172F30931321103C/image-size/large?v=v2&amp;amp;px=999" role="button" title="filter4.PNG" alt="filter4.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Go to the red triangle of the chart, and select&amp;nbsp; Local Data Filter.&amp;nbsp; In the Local Data Filter, select Label and click on the "+"&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filter4.PNG" style="width: 953px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22845i0BB52A056FC27D92/image-size/large?v=v2&amp;amp;px=999" role="button" title="filter4.PNG" alt="filter4.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Now, to add a line of fit, right click on the center of the graph and select Add==Line of Fit.&amp;nbsp; Also, once the Lines of Fit are displayed, go to the Line of Fit control area and unselect Confidence Fit&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filter6.PNG" style="width: 952px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22846i86979411CC80380D/image-size/large?v=v2&amp;amp;px=999" role="button" title="filter6.PNG" alt="filter6.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Go to the red triangle in the graph and select Local Data Filter. Select the Label column and click on the "+"&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filter5.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22847i895FEDA502932B7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="filter5.PNG" alt="filter5.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Because you do not want the Y axis to change when selecting the different X's, uncheck the Include check box, and since the graph is now to a completed state, you can click on the Done button&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filter7.PNG" style="width: 812px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22848i76704F917FAB2D8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="filter7.PNG" alt="filter7.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;You can now select the different X columns and the graph will change, but the Y axis remains the same&lt;/P&gt;
&lt;P&gt;I hope this gets you to where you want to be&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 19:36:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-JSL-to-Plot-Multiple-Series-on-One-Graph/m-p/256621#M50419</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-07T19:36:11Z</dc:date>
    </item>
  </channel>
</rss>

