cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar
MathStatChem
Level VII

Easy way to broadcast x-axis settings in Run Chart

Under Analyze>Quality and Process>Control Charts>Run Chart, if you make run chart plots of multiple Y variables, it does not appear that you can broadcast x-axis settings for all the charts.  Rather frustrating.  Any workarounds for this?  

3 REPLIES 3
jthi
Super User

Re: Easy way to broadcast x-axis settings in Run Chart

Seems like Run Charts doesn't really let you do anything which you can do normally with JMP platforms with axis and it does say "Edit mode is disabled for graphs created from data views" when you hover over x-axis... so you might have to rely on scripting. 

-Jarmo
MathStatChem
Level VII

Re: Easy way to broadcast x-axis settings in Run Chart

Yes, JSL seems to be only option, which is disappointing.  I created a wishlist item for this https://community.jmp.com/t5/JMP-Wish-List/Allow-right-click-actions-and-broadcasting-of-Run-Chart/i...

 

jthi
Super User

Re: Easy way to broadcast x-axis settings in Run Chart

If you don't mind messing up your clipboard it can be luckily quite simple to script (if axisbox behave always like this)

Names Default To Here(1); 

dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt << New Formula Column(
	Operation(Category("Combine"), "Product"),
	Columns(:height, :weight)
);

ccb = dt << Control Chart Builder(
	Show Two Shewhart Charts(0),
	Show Limit Summaries(0),
	Variables(Y(:height, :weight, "height*weight"n)),
	Chart(
		Points(Statistic("Individual")),
		Limits(Sigma("Moving Range"), Show Lower Limit(0), Show Upper Limit(0))
	),
	Show Control Panel(0)
);
Report(ccb)[AxisBox(1)] << Max(60); // demo purposes


Report(ccb)[AxisBox(1)] << Copy Axis Settings;

abs = (Report(ccb) << XPath("//AxisBox"));
xabs = abs[3::N Items(abs)::2];
xabs << Paste Axis Settings;

Or I think you can use << Copy Script and then send that list of settings

ascript = Report(ccb)[AxisBox(1)] << Get Script;
abs = (Report(ccb) << XPath("//AxisBox"));
xabs = abs[3::N Items(abs)::2];
Eval(EvalExpr(
	Send(xabs, Expr(ascript))
));
-Jarmo

Recommended Articles