Dear community,
I want to generate many custom graphs (for each line in a table with > 20K rows) and decided to do with a graph box.
But when I generate it, it fails to recognize the y scaling (maximum is 9e6 and noch 100).
What is going wrong here?
Thanks and BR
(inspired by Solved: Changing the scales of a graph box - JMP User Community)

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 << getyaxis())["Max"];
// 100
I think if you just change ";" after Y Scale to "," it should work.
wow, good catch!
So, named props of the Graph box have to be separated by commas, the expressions inside the script of the graph can be separated by commas or semicolons.
