Yes, Remove Graphics Script is new for JMP 10. For prior releases, you can build a user-defined function containing the graphics script, then reinitialize the function and send the Reshow message to the FrameBox to update the screen. Here is an example:
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
_dist = Distribution(
Stack( 1 ),
Continuous Distribution(
Column( :height ),
Quantiles( 0 ),
Moments( 0 ),
Horizontal Layout( 1 ),
Vertical( 0 )
)
);
_rdist = _dist << Report;
_histframe = _rdist["height"][framebox( 2 )];
curve = Function( {}, // make a function holding the old drawing code
mu = 62.55;
sigma = 4.24;
Y Function( Sqrt( 2 * Pi() ) * Normal Density( (x - mu) / sigma ) * 0.095 + 0, x );
);
_histframe << Add Graphics Script(
Description( "NormalPDF" ),
curve() // call the function holding the old code
);
/* how do I remove the graphics script?*/
Wait( 2 ); //For demonstration purposes only
curve = Function( {}, {} );
_histframe << reshow;
Wait( 2 ); //For demonstration purposes only
// put the script back
curve = Function( {}, // make a function holding the old drawing code
mu = 62.55;
sigma = 4.24;
Y Function( Sqrt( 2 * Pi() ) * Normal Density( (x - mu) / sigma ) * 0.095 + 0, x );
);
_histframe << reshow;
I hope that helps!
Wendy