Subscribe Bookmark RSS Feed

Reverse order axis via jsl

The axis settings dialog box has an option to Reverse Order.  Is there a way to select this option from JSL?

thanks,

Hyde

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Not directly it seems, but setting Max as Min and Min as Max has the same effect. For example axisbox<<max(0)<<min(100); reverses the axis and set the limit to 100 and 0.

To reverse axis while retaining the current axis settings, this should generally work.

Open( "$SAMPLE_DATA/Big Class.jmp" );

biv = Bivariate( Y( :weight ), X( :height ), FitLine );

rbiv = biv << report;

axisbox = rbiv[axis box( 1 )];

// Reverse axis

as = axisbox << get script;

axisbox << Max( Arg( as[3] ) ) << Min( Arg( as[4] ) );

1 REPLY
Solution

Not directly it seems, but setting Max as Min and Min as Max has the same effect. For example axisbox<<max(0)<<min(100); reverses the axis and set the limit to 100 and 0.

To reverse axis while retaining the current axis settings, this should generally work.

Open( "$SAMPLE_DATA/Big Class.jmp" );

biv = Bivariate( Y( :weight ), X( :height ), FitLine );

rbiv = biv << report;

axisbox = rbiv[axis box( 1 )];

// Reverse axis

as = axisbox << get script;

axisbox << Max( Arg( as[3] ) ) << Min( Arg( as[4] ) );