<?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 get the graph builder to dispatch a variable scale for the Y variable depending on the da in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-get-the-graph-builder-to-dispatch-a-variable-scale-for/m-p/81457#M36952</link>
    <description>&lt;P&gt;It appears as if the max value is stuck for both charts.&amp;nbsp; However, here is a work around that permits the charts to run independently.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt2 = Open( "$SAMPLE_DATA\Big Class.JMP" );

win = New Window( "Graphs", lub = Lineup Box( N Col( 2 ) ) );

Sexs = (Associative Array( Column( dt2, "sex" ) ) &amp;lt;&amp;lt; Get keys);

For( i = 1, i &amp;lt;= N Items( Sexs ), i++,
	dt2 &amp;lt;&amp;lt; select where( :sex == sexs[i] );
	dt = dt2 &amp;lt;&amp;lt; subset( invisible, selected rows( 1 ), selected columns( 0 ) );
	lub &amp;lt;&amp;lt; append(
		gb = dt &amp;lt;&amp;lt; Graph Builder(
			Variables( X( :weight ), Y( :height ), Wrap( :sex, N View Levels( 1 ) ) ),
			Elements( Points( X, Y, Legend( 7 ) ), Smoother( X, Y, Legend( 9 ) ) ),
			Local Data Filter(
				Close Outline( 1 ),
				Add Filter(
					columns( :Sex ),
					Where( :Sex == Sexs[i] ),
					Display( :Sex, Size( 224, 126 ), List Display )
				)
			)
		);
		Report( gb )[AxisBox( 2 )] &amp;lt;&amp;lt; Min( 0 );
	)
	
	;
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 26 Oct 2018 03:42:46 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-10-26T03:42:46Z</dc:date>
    <item>
      <title>How to get the graph builder to dispatch a variable scale for the Y variable depending on the data</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-the-graph-builder-to-dispatch-a-variable-scale-for/m-p/80795#M36921</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been searching this topic throughout the community discussions but I had not luck so far.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to get the graph builder to dispatch a variable scale for the Y variable depending on the data range?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the BigClass data example If I had more than one graph to plot I would use the following script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt= Open ("Big Class.JMP");

win = New window("Graphs", lub = Lineup Box (Ncol(2)));

Sexs = (Associative Array(Column (dt, "sex"))&amp;lt;&amp;lt;Get keys);

For (i = 1, i&amp;lt;= N items (Sexs), i++,

lub&amp;lt;&amp;lt; Append( Graph Builder(
	Variables( X( :weight ), Y( :height ), Wrap( :sex, N View Levels( 1 ) ) ),
	Elements( Points( X, Y, Legend( 7 ) ), Smoother( X, Y, Legend( 9 ) ) ),
	Local Data Filter(
	Close Outline( 1 ),
	Add Filter(
	columns( :Sex ),
	Where( :Sex == Sexs[i] ),
	Display( :Sex, Size( 224, 126 ), List Display )) ))));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;This code works for me.&amp;nbsp;Also, the Y scale adjusts automatically&amp;nbsp;which is great. However, if I would like to keep some characteristics costumized like lets say I want to have a Y minimum of 55 as an example but I would like to leave JMP to select the Y maximum according to the data range. How do I do that in this case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my situation is different, I would like the Y minimum to be always zero since I have a curve with all the values starting in zero but for some reason JMP sets the variables axis settings starting on negative numbers regardless. Nevertheless, even if I would like the values to be shown on a specific Y minimum for all the graphs I am not able to then have the Y Max to change automatically according to the range of data or until the actual Y maximum.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the script above and doing this manually I would have the resulting script line when setting a Y minmum only as 55 :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;SendToReport(Dispatch({},"height",ScaleBox,{Min( 55 ),  Inc( 5 ), Minor Ticks( 1 )}));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You will see that the resulting two graphs will have the same Y maximum regardless and set as below 70 even though one of the graphs has data until 70.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to do write a script that would allow the Y max to change accroding to the data range or set the Max dependent on the Local filter already defined?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 12:19:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-the-graph-builder-to-dispatch-a-variable-scale-for/m-p/80795#M36921</guid>
      <dc:creator>ivomdb</dc:creator>
      <dc:date>2018-10-25T12:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the graph builder to dispatch a variable scale for the Y variable depending on the da</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-the-graph-builder-to-dispatch-a-variable-scale-for/m-p/81457#M36952</link>
      <description>&lt;P&gt;It appears as if the max value is stuck for both charts.&amp;nbsp; However, here is a work around that permits the charts to run independently.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt2 = Open( "$SAMPLE_DATA\Big Class.JMP" );

win = New Window( "Graphs", lub = Lineup Box( N Col( 2 ) ) );

Sexs = (Associative Array( Column( dt2, "sex" ) ) &amp;lt;&amp;lt; Get keys);

For( i = 1, i &amp;lt;= N Items( Sexs ), i++,
	dt2 &amp;lt;&amp;lt; select where( :sex == sexs[i] );
	dt = dt2 &amp;lt;&amp;lt; subset( invisible, selected rows( 1 ), selected columns( 0 ) );
	lub &amp;lt;&amp;lt; append(
		gb = dt &amp;lt;&amp;lt; Graph Builder(
			Variables( X( :weight ), Y( :height ), Wrap( :sex, N View Levels( 1 ) ) ),
			Elements( Points( X, Y, Legend( 7 ) ), Smoother( X, Y, Legend( 9 ) ) ),
			Local Data Filter(
				Close Outline( 1 ),
				Add Filter(
					columns( :Sex ),
					Where( :Sex == Sexs[i] ),
					Display( :Sex, Size( 224, 126 ), List Display )
				)
			)
		);
		Report( gb )[AxisBox( 2 )] &amp;lt;&amp;lt; Min( 0 );
	)
	
	;
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Oct 2018 03:42:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-the-graph-builder-to-dispatch-a-variable-scale-for/m-p/81457#M36952</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-10-26T03:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the graph builder to dispatch a variable scale for the Y variable depending on the da</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-the-graph-builder-to-dispatch-a-variable-scale-for/m-p/81501#M36962</link>
      <description>&lt;P&gt;Thanks so much Jim.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 13:36:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-the-graph-builder-to-dispatch-a-variable-scale-for/m-p/81501#M36962</guid>
      <dc:creator>ivomdb</dc:creator>
      <dc:date>2018-10-26T13:36:52Z</dc:date>
    </item>
  </channel>
</rss>

