cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Neo
Neo
Level VI

How to change frame border color in y grouped charts

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)?

 

Neo_0-1699464942384.png

 

When it's too good to be true, it's neither
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to change frame border color in y grouped charts

So you wish to change Graph Spacing color? Let JMP do it

jthi_0-1699467963466.png

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)

jthi_1-1699468067382.png

 

-Jarmo

View solution in original post

3 REPLIES 3
jthi
Super User

Re: How to change frame border color in y grouped charts

So you wish to change Graph Spacing color? Let JMP do it

jthi_0-1699467963466.png

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)

jthi_1-1699468067382.png

 

-Jarmo
Neo
Neo
Level VI

Re: How to change frame border color in y grouped charts

@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)

When it's too good to be true, it's neither
txnelson
Super User

Re: How to change frame border color in y grouped charts

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:

txnelson_0-1699471466679.png

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 );
);
Jim