Let's say I want to add custom text or a shape on my graph using "Add Graphics Script":
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Window( "Example",
gb = Graph Builder(
Size( 528, 456 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ), Overlay( :sex ) ),
Elements( Points( X, Y, Legend( 9 ) ), Smoother( X, Y, Legend( 10 ) ) ),
)
);
rgb = gb << Report;
framebox = rgb << XPATH( "//FrameBox" );
framebox << Add Graphics Script(
"Front",
Description( "CustomText" ),
{
Text( "left", 0.05, {100, 55}, "This is my custom text" ) ;
Line( {80, 50}, {160, 65} )
}
);
How do I later change, let's say, font or font size? How do I change line color or style? How do I get references to them to do things like hide, show, delete, etc.?