cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
AlexR846
Level III

How to include code to show the Grid Lines in the Variability plot for X-Axis?

Hi,

 

There is a list named "ColumnsList" with columns name from my Datatable for which i would like to make Variability plot for all columns present in the list.

Following Script creates box plots for all columns as required in the single page,

 

theExpr = "Variability Chart( Y( :\!"" || ColumnsList[1] || "\!"";
For( p = 2, p <= N Items( ColumnsList ), p++,
   theExpr = theExpr || ", :\!"" || ColumnsList[p] || " \!"");
theExpr = theExpr || "), X(:WaferID, :DateCode, :Die),Std Dev Chart( 0 ),Show Grand Mean( 1 )";
Eval( Parse( theExpr ) );

However, for me it is bit challenging to include a code snippet to include the "Show Major Grid" for X-Axis in the above script.

Could anyone help me, how to include code snippet to show the Major Grid Line in the above code.

 

Thank you.

Alex.

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to include code to show the Grid Lines in the Variability plot for X-Axis?

Maybe something like this:

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Variability Data/2 Factors Crossed.jmp");
var_chart = dt << Variability Chart(
	Y(:Measurement, :Standard), X(:Operator, :part#),
	Std Dev Chart(0),
	Show Grand Mean(1)
);

For Each({rep}, var_chart << report,
	axisbox = rep[axis box(2)];
	axisbox << Show Major Grid(1);
);
-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: How to include code to show the Grid Lines in the Variability plot for X-Axis?

Maybe something like this:

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Variability Data/2 Factors Crossed.jmp");
var_chart = dt << Variability Chart(
	Y(:Measurement, :Standard), X(:Operator, :part#),
	Std Dev Chart(0),
	Show Grand Mean(1)
);

For Each({rep}, var_chart << report,
	axisbox = rep[axis box(2)];
	axisbox << Show Major Grid(1);
);
-Jarmo
AlexR846
Level III

Re: How to include code to show the Grid Lines in the Variability plot for X-Axis?

Thanks Jarmo !!

That perfectly did the job.