I want to change the color of the grey borders marked by red arrows below. How to do this via JSL (without changing JMP preferences)?
So you wish to change Graph Spacing color? Let JMP do it
and then get script and see what is "different"
Grid Color("Medium Light Red"),
and finally try searching from Scripting Index with that (after you know what you are looking for)
I could not see any option to directly change the borders around each frame box, so here is the method that I came up with:
Names Default To Here( 1 ); dt = Open( "$SAMPLE_DATA/big class.jmp" ); gb = Graph Builder( Size( 570, 578 ), Variables( X( :sex ), Y( :height ), Group Y( :age ) ), Elements( Smoother( X, Y, Legend( 1 ) ) ) ); (Report( gb ) << xpath( "//FrameBox" )) << add graphics script( Pen Size( 2 ); Pen Color( red ); H Line( -5000, 5000, Report( gb )[axisbox( 2 )] << get min ); );
@jthi Do not see Graph spacing color in JMP 16.2 but Grid Color does the job.
(I did search the scripting index before asking but did not expect this to be called Grid Color as these lines are separation/spacing lines)