cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
WebDesignesCrow
Super User

How to change the box-colour of SPC charts (Levey-Jennings) for all subgroup

Hello experts,

I've constructed an SPC chart which I like very much which I'm going to automate using scripting.

However, as you can see, the default box-plot colour is grey (i want to change to red or blue) for all boxes.

WebDesignesCrow_0-1676276616947.png

I can't find the settings in preference (JMP 16) to change the box colour from gray to blue.

I did notice that, I can use "Customize Graph" to change the line colour of each box plot but is there fastest way change all of the box-colour?

WebDesignesCrow_2-1676277207753.png

WebDesignesCrow_3-1676277366577.png

Thank you in advance!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to change the box-colour of SPC charts (Levey-Jennings) for all subgroup

XPath is one option

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Quality Control/Coating.jmp");
obj = dt << Control Chart Builder(
	Variables(Subgroup(:Sample), Y(:Weight)),
	Chart(
		Position(1),
		Points(Individual Points(1), Box Plots(1)),
		Limits(Sigma("Levey Jennings"), Zones(1), Shade Zones(1))
	),
	Show Control Panel(0)
);

wait(1);
boxsegs = report(obj) << XPath("//BoxPlotSeg");
boxsegs << Line Color("Blue");
-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: How to change the box-colour of SPC charts (Levey-Jennings) for all subgroup

XPath is one option

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Quality Control/Coating.jmp");
obj = dt << Control Chart Builder(
	Variables(Subgroup(:Sample), Y(:Weight)),
	Chart(
		Position(1),
		Points(Individual Points(1), Box Plots(1)),
		Limits(Sigma("Levey Jennings"), Zones(1), Shade Zones(1))
	),
	Show Control Panel(0)
);

wait(1);
boxsegs = report(obj) << XPath("//BoxPlotSeg");
boxsegs << Line Color("Blue");
-Jarmo