<?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 JSL script on graph builder box plot all column against wafer number in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-script-on-graph-builder-box-plot-all-column-against-wafer/m-p/287220#M55437</link>
    <description>&lt;P&gt;Hello, I am trying to plot my data (multiple parameters) against the wafer number. I have found a script from the community for the distribution graph. Therefore, I have modified it by replacing Distribution function with Graph Builder function. However, only one graph was shown at the report instead of all the graphs. Can I have you advice on this script? Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table ();

// Get all of the continuous data columns
colNames = dt &amp;lt;&amp;lt; get column names( string, continuous );

// Create the JSL to create the script
theExpr = "Graph Builder(
	Size( 1414, 795 ),
	Show Control Panel( 0 ),
	Variables( X( :WF_NUM ), Y( colNames[1] ), Color( :WF_NUM ) ),
	Elements( Box Plot( X, Y, Legend( 7 ) ) )
);
)";

For( i = 1, i &amp;lt;= N Items( colNames ), i++,
	theExpr = theExpr || ", Graph Builder(
	Size( 1414, 795 ),
	Show Control Panel( 0 ),
	Variables( X( :WF_NUM ), Y(colNames[" || Char( i ) || "] ), Color( :WF_NUM ) ),
	Elements( Box Plot( X, Y, Legend( 7 ) ) )
)");

// place the closing ")" to complete the command string
theExpr = theExpr || ");";

// Run the created JSL
Eval(Parse(theExpr));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dominic&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:05:11 GMT</pubDate>
    <dc:creator>chungman89</dc:creator>
    <dc:date>2023-06-11T11:05:11Z</dc:date>
    <item>
      <title>JSL script on graph builder box plot all column against wafer number</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-script-on-graph-builder-box-plot-all-column-against-wafer/m-p/287220#M55437</link>
      <description>&lt;P&gt;Hello, I am trying to plot my data (multiple parameters) against the wafer number. I have found a script from the community for the distribution graph. Therefore, I have modified it by replacing Distribution function with Graph Builder function. However, only one graph was shown at the report instead of all the graphs. Can I have you advice on this script? Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table ();

// Get all of the continuous data columns
colNames = dt &amp;lt;&amp;lt; get column names( string, continuous );

// Create the JSL to create the script
theExpr = "Graph Builder(
	Size( 1414, 795 ),
	Show Control Panel( 0 ),
	Variables( X( :WF_NUM ), Y( colNames[1] ), Color( :WF_NUM ) ),
	Elements( Box Plot( X, Y, Legend( 7 ) ) )
);
)";

For( i = 1, i &amp;lt;= N Items( colNames ), i++,
	theExpr = theExpr || ", Graph Builder(
	Size( 1414, 795 ),
	Show Control Panel( 0 ),
	Variables( X( :WF_NUM ), Y(colNames[" || Char( i ) || "] ), Color( :WF_NUM ) ),
	Elements( Box Plot( X, Y, Legend( 7 ) ) )
)");

// place the closing ")" to complete the command string
theExpr = theExpr || ");";

// Run the created JSL
Eval(Parse(theExpr));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dominic&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:05:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-script-on-graph-builder-box-plot-all-column-against-wafer/m-p/287220#M55437</guid>
      <dc:creator>chungman89</dc:creator>
      <dc:date>2023-06-11T11:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: JSL script on graph builder box plot all column against wafer number</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-script-on-graph-builder-box-plot-all-column-against-wafer/m-p/287235#M55439</link>
      <description>&lt;P&gt;The JSL you provided can be simplified&amp;nbsp; to produce the charts you want.&amp;nbsp; Below is a modification of your code&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );

// Change the name of the Wafer column to match the name used
// in the Graph Builder code
dt:wafer &amp;lt;&amp;lt; set name( "WF_NUM" );&lt;BR /&gt;colNames = dt &amp;lt;&amp;lt; get column names( string, continuous );

// Since there are 128 columns that could be plotted, the code has been
// modified to just produce 3 of the plots.  The commented out code
// should replace the "i &amp;lt;= 3, i++," to plot all graphs
For( i = 1, i &amp;lt;= 3, i++, // N Items( colNames ), i++,
	dt &amp;lt;&amp;lt; Graph Builder(
		Size( 1414, 795 ),
		Show Control Panel( 0 ),
		Variables(
			X( :WF_NUM ),
			Y( As Column( dt, colNames[i] ) ),
			Color( :WF_NUM )
		),
		Elements( Box Plot( X, Y, Legend( 7 ) ) )
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wafer.PNG" style="width: 528px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26342i7AFC20512BC4F82B/image-dimensions/528x304?v=v2" width="528" height="304" role="button" title="wafer.PNG" alt="wafer.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 11:57:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-script-on-graph-builder-box-plot-all-column-against-wafer/m-p/287235#M55439</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-24T11:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: JSL script on graph builder box plot all column against wafer number</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-script-on-graph-builder-box-plot-all-column-against-wafer/m-p/287355#M55471</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The graphs were plotted with your modified code. One extra question regarding the modified codes. When I was using the reference code from the community for distribution graphs, all the graphs were summarised into a single report which make it easy to export to powerpoint. May I ask what extra lines are needed for the code you have simplified to summarised graphs into a single report?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dominic&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 11:09:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-script-on-graph-builder-box-plot-all-column-against-wafer/m-p/287355#M55471</guid>
      <dc:creator>chungman89</dc:creator>
      <dc:date>2020-08-24T11:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: JSL script on graph builder box plot all column against wafer number</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-script-on-graph-builder-box-plot-all-column-against-wafer/m-p/287356#M55472</link>
      <description>&lt;P&gt;All that needs to be done is to place the graph generations inside a New Window() function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );

// Change the name of the Wafer column to match the name used
// in the Graph Builder code
dt:wafer &amp;lt;&amp;lt; set name( "WF_NUM" );

colNames = dt &amp;lt;&amp;lt; get column names( string, continuous );

nw = New Window( "Graphs", 

// Since there are 128 columns that could be plotted, the code has been
	// modified to just produce 3 of the plots.  The commented out code
	// should replace the "i &amp;lt;= 3, i++," to plot all graphs
	For( i = 1, i &amp;lt;= 3, i++, // N Items( colNames ), i++,
		dt &amp;lt;&amp;lt; Graph Builder(
			Size( 1414, 795 ),
			Show Control Panel( 0 ),
			Variables(
				X( :WF_NUM ),
				Y( As Column( dt, colNames[i] ) ),
				Color( :WF_NUM )
			),
			Elements( Box Plot( X, Y, Legend( 7 ) ) )
		),

	);

);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Aug 2020 11:56:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-script-on-graph-builder-box-plot-all-column-against-wafer/m-p/287356#M55472</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-24T11:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: JSL script on graph builder box plot all column against wafer number</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-script-on-graph-builder-box-plot-all-column-against-wafer/m-p/287957#M55519</link>
      <description>&lt;P&gt;Thank you for your help&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the answer with details and code.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 11:56:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-script-on-graph-builder-box-plot-all-column-against-wafer/m-p/287957#M55519</guid>
      <dc:creator>chungman89</dc:creator>
      <dc:date>2020-08-25T11:56:38Z</dc:date>
    </item>
  </channel>
</rss>

