optimize axes of graph after hide/excludeIs there a native way to rescale the axes to an optimal view after hiding and excluding without auto recalc on?
Names Default to Here( 1 );
dt = open("$SAMPLE_DATA\Big Class.jmp");
biv = dt << Bivariate( Y( :weight ), X( :height ) );
dt << Select Rows([3, 5, 8, 11, 14]);
dt << Hide(1) << Exclude(1);
dt << Clear Select();
// is there a way to make the axes go to the same point as if I went to redo analysis?
biv << Optimize Axies();
Re: optimize axes of graph after hide/excludeYou can add a script to the frame box of the graph, which will run each time the frame box is changed. Within the script you can set the graphics options you want, based upon whatever you determine are the "Optimal" settings. Below is a an incomplete example. The "??" need to be replaced with what you think are the optimal settings for the min and max values.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
biv = dt << Bivariate( Y( :weight ), X( :height ) );
dt << Select Rows( [3, 5, 8, 11, 14] );
dt << Hide( 1 ) << Exclude( 1 );
dt << Clear Select();
// is there a way to make the axes go to the same point as if I went to redo analysis?
report(biv)[framebox(1)] << Add Graphics Script(
report(biv)[Axisbox(1)<<MIN></MIN>