<?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: Adjusting variables on Graph builder automatically in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Adjusting-variables-on-Graph-builder-automatically/m-p/45813#M26140</link>
    <description>&lt;P&gt;Here is an example of how to accomplish the dynamic plotting.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
tdt = Open( "$SAMPLE_DATA\semiconductor capability.jmp" );

m = {};
b = 1;
collist = tdt &amp;lt;&amp;lt; get column names();
For( z = 35, z &amp;lt;= N Cols( tdt ), z++,
	m[b] = Char( collist[z] );
	b = b + 1;
);

TheExpr =
"gbfc = tdt &amp;lt;&amp;lt; Graph Builder(
	Size( 1515, 922 ),
	Show Control Panel( 0 ),
	Variables(
		X( :Wafer ),
		Y( Column( tdt, m[1] ) )";
For( i = 2, i &amp;lt;= 5, i++,
	TheExpr = TheExpr || ",Y( Column( tdt, m[" || Char( i ) || "] ), Position( 1 ) )";
);
TheExpr = TheExpr ||
"),Elements( Points( X( 1 ), Y( 1 ), Y( 2 ), Y( 3 ), Y( 4 ), Y( 5 ), Legend( 18 ) ) ),
	SendToReport( Dispatch( {}, \!"X title\!", TextEditBox, {Set Text( \!"Index / Lot / Wafers\!" )} ) )
);";

Eval( Parse( TheExpr ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Concerning the changing of the type of plot or the axis values, JSL will allow you to structure any of these items.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2017 17:41:04 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-10-12T17:41:04Z</dc:date>
    <item>
      <title>Adjusting variables on Graph builder automatically</title>
      <link>https://community.jmp.com/t5/Discussions/Adjusting-variables-on-Graph-builder-automatically/m-p/45811#M26139</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created a final table which has a bunch of columns. The data I want to plot start from 35th column every time. The number of columns I want to plot keeps varyign with every iteration. It could vary from 1 column to many columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the best way to plot with variables continuously changing?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to change the type of plot using an external variable like "plot_type" saying Linear or box?&lt;/P&gt;
&lt;P&gt;Is there a way to change the log or linear plot with every iteration using a similar idea?&lt;/P&gt;
&lt;P&gt;Below is an example with 5 columns. It doesn't work with any other number of columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;collist = tdt &amp;lt;&amp;lt; get column names();
Show( collist );
m = {};
b = 1;
For( z = 35, z &amp;lt;= N Cols( tdt ), z++,
	m[b] = Char( collist[z] );
	b = b + 1;
);
Show( m );

gbfc = tdt &amp;lt;&amp;lt; Graph Builder(
	Size( 1515, 922 ),
	Show Control Panel( 0 ),
	Variables(
		X( :Index ),
		X( :Name, Position( 1 ) ),
		X( :Wafers, Position( 1 ) ),
		Y( Column( tdt, m[1] ) ),
		Y( Column( tdt, m[2] ), Position( 1 ) ),
		Y( Column( tdt, m[3] ), Position( 1 ) ),
		Y( Column( tdt, m[4] ), Position( 1 ) ),
		Y( Column( tdt, m[5] ), Position( 1 ) )
	),
	Elements( Points( X( 1 ), Y( 1 ), Y( 2 ), Y( 3 ), Y( 4 ), Y( 5 ), Legend( 18 ) ) ),
	SendToReport( Dispatch( {}, "X title", TextEditBox, {Set Text( "Index / Lot / Wafers" )} ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you so much.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 17:59:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adjusting-variables-on-Graph-builder-automatically/m-p/45811#M26139</guid>
      <dc:creator>vishwasanj</dc:creator>
      <dc:date>2018-07-31T17:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting variables on Graph builder automatically</title>
      <link>https://community.jmp.com/t5/Discussions/Adjusting-variables-on-Graph-builder-automatically/m-p/45813#M26140</link>
      <description>&lt;P&gt;Here is an example of how to accomplish the dynamic plotting.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
tdt = Open( "$SAMPLE_DATA\semiconductor capability.jmp" );

m = {};
b = 1;
collist = tdt &amp;lt;&amp;lt; get column names();
For( z = 35, z &amp;lt;= N Cols( tdt ), z++,
	m[b] = Char( collist[z] );
	b = b + 1;
);

TheExpr =
"gbfc = tdt &amp;lt;&amp;lt; Graph Builder(
	Size( 1515, 922 ),
	Show Control Panel( 0 ),
	Variables(
		X( :Wafer ),
		Y( Column( tdt, m[1] ) )";
For( i = 2, i &amp;lt;= 5, i++,
	TheExpr = TheExpr || ",Y( Column( tdt, m[" || Char( i ) || "] ), Position( 1 ) )";
);
TheExpr = TheExpr ||
"),Elements( Points( X( 1 ), Y( 1 ), Y( 2 ), Y( 3 ), Y( 4 ), Y( 5 ), Legend( 18 ) ) ),
	SendToReport( Dispatch( {}, \!"X title\!", TextEditBox, {Set Text( \!"Index / Lot / Wafers\!" )} ) )
);";

Eval( Parse( TheExpr ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Concerning the changing of the type of plot or the axis values, JSL will allow you to structure any of these items.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 17:41:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adjusting-variables-on-Graph-builder-automatically/m-p/45813#M26140</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-10-12T17:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting variables on Graph builder automatically</title>
      <link>https://community.jmp.com/t5/Discussions/Adjusting-variables-on-Graph-builder-automatically/m-p/45817#M26141</link>
      <description>Thank you txnelson. That works perfectly. I will try to figure out how to change the Limits on the Y axis, change the type of plot, and choose log or linear. If I embed all the 3 features into the same script, it will be pretty robust.</description>
      <pubDate>Thu, 12 Oct 2017 17:57:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adjusting-variables-on-Graph-builder-automatically/m-p/45817#M26141</guid>
      <dc:creator>vishwasanj</dc:creator>
      <dc:date>2017-10-12T17:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting variables on Graph builder automatically</title>
      <link>https://community.jmp.com/t5/Discussions/Adjusting-variables-on-Graph-builder-automatically/m-p/45850#M26145</link>
      <description>&lt;P&gt;After Jim's script, you can further control the axes like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;outline = report(gbfc);
yaxis = outline[axisbox(2)];

yaxis&amp;lt;&amp;lt;min(-100);
yaxis&amp;lt;&amp;lt;max(60);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I use the outline's gray open/close triangle-&amp;gt;right-click-&amp;gt;Edit-&amp;gt;ShowTreeStructure to discover axisbox 2 is the Y axis:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pick ShowTree Structure from the outline. Then click part of the report to find it." style="width: 588px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7970iFAE9E228C2C0509E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Pick ShowTree Structure from the outline. Then click part of the report to find it." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Pick ShowTree Structure from the outline. Then click part of the report to find it.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then I use the scripting index to look up AxisBox&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Using the scripting index to find messages for an AxisBox" style="width: 917px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7971iE8B416EB02B9C1E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Using the scripting index to find messages for an AxisBox" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Using the scripting index to find messages for an AxisBox&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 19:10:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adjusting-variables-on-Graph-builder-automatically/m-p/45850#M26145</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2017-10-12T19:10:59Z</dc:date>
    </item>
  </channel>
</rss>

