<?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: How to dynamically set auto y-axis scale as parameters are selected in local data filter for (graph builder) charts by variable? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-set-auto-y-axis-scale-as-parameters-are/m-p/676342#M86303</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;Thanks. As mentioned in OP, I would prefer not to make a new columns as in my actual data as I would then need to do this for hundreds of columns.&lt;/P&gt;&lt;P&gt;JMPs autoscaling was not satisfactorily showing the data, hence I used min/max&amp;nbsp; (&lt;SPAN&gt;copied from the script after interactively using the Graph Builder to display data properly, as mentioned in my OP&lt;/SPAN&gt;).&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2023 12:33:32 GMT</pubDate>
    <dc:creator>Neo</dc:creator>
    <dc:date>2023-09-11T12:33:32Z</dc:date>
    <item>
      <title>How to dynamically set auto y-axis scale as parameters are selected in local data filter for (graph builder) charts by variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-set-auto-y-axis-scale-as-parameters-are/m-p/676294#M86299</link>
      <description>&lt;P&gt;This script below generates data in a format similar to my actual data and then plots charts in a layout I would like.&lt;/P&gt;&lt;P&gt;Multiple parameters are plotted in the y-axis as they are selected in the local data filter. This is useful for me as I can compare trends on related parameters in my actual data.&lt;/P&gt;&lt;P&gt;Without using Graph builders "Page" option or creating additional columns in the data table, is there a way to get independent best-fit/auto y-axis scales&amp;nbsp;as parameters are selected in local data filter? I am thinking in terms of getting a handle to the Display Trees and Filter Change Handler, but do know how to proceed. Some help would be useful.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
clear log ();
dt = Open("$SAMPLE_DATA/Probe.jmp");
// Combine columns 1
Data Table( "Probe" ) &amp;lt;&amp;lt; Combine Columns(columns( :Lot ID, :Wafer Number ),	Column Name( "LotWafer" ),	Delimiter( "." ));
// Combine columns 2
Data Table( "Probe" ) &amp;lt;&amp;lt; Combine Columns(columns( :Die X, :Die Y ), Column Name( "[X,Y]" ), Delimiter( "," ));
// Delete columns
Data Table( "Probe" ) &amp;lt;&amp;lt; Delete Columns( :Lot ID, :Wafer Number, :Die X, :Die Y );
grouped_cols = dt &amp;lt;&amp;lt; get column group( "Responses" );

// Transpose data table // → Data Table( "Transpose of Probe" )
Data Table( "Probe" ) &amp;lt;&amp;lt; Transpose(	columns (grouped_cols),	By( :LotWafer, :Process, :Start Time ),
	Label( :Site ),	Output Table( "Transpose of Probe" ));
close (dt, no save);

// Add column
dt = Current Data Table (); 
Data Table( "Transpose of Probe" ) 
&amp;lt;&amp;lt; New Column("Mean", Numeric, "Continuous", Format("Best", 12 ), Formula(Mean( :"1"n, :"2"n, :"3"n, :"4"n, :"5"n )));

//Plot chart
dt = Graph Builder(
	Size( 570, 458 ),
	Show Control Panel( 0 ),
	Y Group Edge( "Left" ),
	Variables(X(:LotWafer, Order By( :Start Time, Ascending, Order Statistic( "Mean" ) )),
		     Y( :Mean ), Group Y(:Label,	Order By( :Process, Ascending, Order Statistic( "Mean" ) ))	),
	Elements( Points( X, Y, Legend( 23 ) ) ),
	Local Data Filter(Conditional, Add Filter(columns( :Label ),Where( :Label == {"30D1_7X100_IL_12V", "30D1_7X100_IL_25V"} ),
			Display( :Label, Find( Set Text( "" ) ) ))),
	SendToReport(Dispatch({},"Mean",ScaleBox,{ Min( -0.0000336 ), Max( 0.00004544 ), Inc( 0.00001 ),Minor Ticks( 1 )})));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Note the Min/Max values in the last line copied from the script after interactively using the Graph Builder to display data properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 10:25:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-dynamically-set-auto-y-axis-scale-as-parameters-are/m-p/676294#M86299</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-09-11T10:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically set auto y-axis scale as parameters are selected in local data filter for (graph builder) charts by variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-set-auto-y-axis-scale-as-parameters-are/m-p/676309#M86300</link>
      <description>&lt;P&gt;If you are using Y-Group I think the Y-axis are linked together. One option could be to create new Mean column which has been scaled, so all Labels fit to similar axis (also remove the min/max/inc from graph builder script, to allow JMP perform it's own axis calculations).&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 11:21:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-dynamically-set-auto-y-axis-scale-as-parameters-are/m-p/676309#M86300</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-09-11T11:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically set auto y-axis scale as parameters are selected in local data filter for (graph builder) charts by variable?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-set-auto-y-axis-scale-as-parameters-are/m-p/676342#M86303</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;Thanks. As mentioned in OP, I would prefer not to make a new columns as in my actual data as I would then need to do this for hundreds of columns.&lt;/P&gt;&lt;P&gt;JMPs autoscaling was not satisfactorily showing the data, hence I used min/max&amp;nbsp; (&lt;SPAN&gt;copied from the script after interactively using the Graph Builder to display data properly, as mentioned in my OP&lt;/SPAN&gt;).&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 12:33:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-dynamically-set-auto-y-axis-scale-as-parameters-are/m-p/676342#M86303</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-09-11T12:33:32Z</dc:date>
    </item>
  </channel>
</rss>

