<?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 y scaling in graph box problem in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/y-scaling-in-graph-box-problem/m-p/923541#M108184</link>
    <description>&lt;P&gt;Dear community,&lt;/P&gt;
&lt;P&gt;I want to generate many custom graphs (for each line in a table with &amp;gt; 20K rows) and decided to do with a graph box.&lt;/P&gt;
&lt;P&gt;But when I generate it, it fails to recognize the y scaling (maximum is 9e6 and noch 100).&lt;/P&gt;
&lt;P&gt;What is going wrong here?&lt;/P&gt;
&lt;P&gt;Thanks and BR&lt;/P&gt;
&lt;P&gt;(inspired by&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Changing-the-scales-of-a-graph-box/m-p/52571" target="_blank"&gt;Solved: Changing the scales of a graph box - JMP User Community&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Georg_0-1768238425090.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90789i9B12CB1E61EA9A48/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Georg_0-1768238425090.png" alt="Georg_0-1768238425090.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

x_vec = [-3, -2, -1, -0.5, 0, 0.5, 1, 2, 3];
y_vec = 1e6 * E Mult( x_vec, x_vec );

show(Min( y_vec ), Max( y_vec ));
// Min(y_vec) = 0;
// Max(y_vec) = 9000000;

nw = New Window( "test",
	Outline Box( "outline",
		gb = Graph Box(
			Frame Size( 300, 200 ),
			xname( "radius" ),
			yname( "density" ),
			X Scale( Min( x_vec ), Max( x_vec ) ),
			Y Scale( Min( y_vec ), Max( y_vec ) );
			Pen Color( "Blue" );,
			Pen Size( 5 ),
			Line( x_vec, y_vec )
		)
	)
);

(gb &amp;lt;&amp;lt; getyaxis())["Max"];
// 100&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 12 Jan 2026 17:23:59 GMT</pubDate>
    <dc:creator>Georg</dc:creator>
    <dc:date>2026-01-12T17:23:59Z</dc:date>
    <item>
      <title>y scaling in graph box problem</title>
      <link>https://community.jmp.com/t5/Discussions/y-scaling-in-graph-box-problem/m-p/923541#M108184</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;
&lt;P&gt;I want to generate many custom graphs (for each line in a table with &amp;gt; 20K rows) and decided to do with a graph box.&lt;/P&gt;
&lt;P&gt;But when I generate it, it fails to recognize the y scaling (maximum is 9e6 and noch 100).&lt;/P&gt;
&lt;P&gt;What is going wrong here?&lt;/P&gt;
&lt;P&gt;Thanks and BR&lt;/P&gt;
&lt;P&gt;(inspired by&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Changing-the-scales-of-a-graph-box/m-p/52571" target="_blank"&gt;Solved: Changing the scales of a graph box - JMP User Community&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Georg_0-1768238425090.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90789i9B12CB1E61EA9A48/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Georg_0-1768238425090.png" alt="Georg_0-1768238425090.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

x_vec = [-3, -2, -1, -0.5, 0, 0.5, 1, 2, 3];
y_vec = 1e6 * E Mult( x_vec, x_vec );

show(Min( y_vec ), Max( y_vec ));
// Min(y_vec) = 0;
// Max(y_vec) = 9000000;

nw = New Window( "test",
	Outline Box( "outline",
		gb = Graph Box(
			Frame Size( 300, 200 ),
			xname( "radius" ),
			yname( "density" ),
			X Scale( Min( x_vec ), Max( x_vec ) ),
			Y Scale( Min( y_vec ), Max( y_vec ) );
			Pen Color( "Blue" );,
			Pen Size( 5 ),
			Line( x_vec, y_vec )
		)
	)
);

(gb &amp;lt;&amp;lt; getyaxis())["Max"];
// 100&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jan 2026 17:23:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/y-scaling-in-graph-box-problem/m-p/923541#M108184</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2026-01-12T17:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: y scaling in graph box problem</title>
      <link>https://community.jmp.com/t5/Discussions/y-scaling-in-graph-box-problem/m-p/923554#M108185</link>
      <description>&lt;P&gt;I think if you just change ";" after Y Scale to "," it should work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jan 2026 17:48:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/y-scaling-in-graph-box-problem/m-p/923554#M108185</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-01-12T17:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: y scaling in graph box problem</title>
      <link>https://community.jmp.com/t5/Discussions/y-scaling-in-graph-box-problem/m-p/923558#M108187</link>
      <description>&lt;P&gt;wow, good catch!&lt;BR /&gt;&lt;BR /&gt;So, named props of the Graph box have to be separated by commas, the expressions inside the &lt;STRONG&gt;script&lt;/STRONG&gt; of the graph can be separated by commas or semicolons.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1768242383872.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90793iE0A8C93F77C7D14C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1768242383872.png" alt="hogi_0-1768242383872.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jan 2026 18:27:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/y-scaling-in-graph-box-problem/m-p/923558#M108187</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-01-12T18:27:21Z</dc:date>
    </item>
  </channel>
</rss>

