Choose Language Hide Translation Bar
Highlighted
vince_faller
Super User

optimize axes of graph after hide/exclude

Is 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();

 

Vince Faller - Predictum
1 REPLY 1
Highlighted
txnelson
Super User

Re: optimize axes of graph after hide/exclude

You 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(??)<<max(??);
	report(biv)[Axisbox(2)<<min(??)<<max(??);
);
Jim
Article Labels

    There are no labels assigned to this post.