cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
TheDude
Level III

Is there a way to set the plot ranges for all plots in a platform the same?

I think the subject is self-explanatory:

I run a platform and have many generated plots. Now in many cases it makes a lot of sense to have all the plot axes ranges to be the same. It is very tedious to do this by hand.

I tried holding the Ctrl key when changing the axes on one plot, but that does not propagate to the other plots. 

1 ACCEPTED SOLUTION

Accepted Solutions
Hegedus1
Level III

Re: Is there a way to set the plot ranges for all plots in a platform the same?

Hi,

I propagated the settings for the ranges successfully but perhaps slightly differently.  My method:

1. Set the ranges in in one graph

2. Right -Click on the axis and "Edit > Copy Axis Settings"

3. Ctrl-Right-Click "Edit>Paste Axis Settings"

 

The simple ctrl - Axis settings doesn't do it as you have already found out.

 

Andy

View solution in original post

10 REPLIES 10
jthi
Super User

Re: Is there a way to set the plot ranges for all plots in a platform the same?

Not sure if it can be done interactively, but it can be scripted. Here is fairly simple example

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

dist = dt << Distribution(
	Continuous Distribution(Column(:NPN1), Process Capability(0)),
	Histograms Only,
	By(:lot_id)
);

wait(1);
(dist << XPath("//AxisBox")) << Min(0);
-Jarmo
David_Burnham
Super User (Alumni)

Re: Is there a way to set the plot ranges for all plots in a platform the same?

I think the answer probably depends on which platform that you refer to.  For the distribution there is a uniform scaling option, shown here in the associated JSL, but can be turned on from the red triangle.

 

Distribution(
	Uniform Scaling( 1 ),
	Continuous Distribution( Column( :NPN1 ), Process Capability( 0 ) ),
	Histograms Only,
	Where( :lot_id == "lot01" )
);
-Dave
TheDude
Level III

Re: Is there a way to set the plot ranges for all plots in a platform the same?

Hi David, specifically, I am using the Measurement Systems Analysis (Gauge R&R) platform. 

David_Burnham
Super User (Alumni)

Re: Is there a way to set the plot ranges for all plots in a platform the same?

As has been pointed out, the interactive method is to use the control key whilst selecting the option to paste axis settings (having previously copied the settings).

 

With scripting you can do something like this:

 

names default to here(1);

open("$SAMPLE_DATA/Variability Data/3 Factors Nested & Crossed.jmp");

vc = Variability Chart( Y( :Y ), X( :Instrument, :Part ), By( :Operator ) );

// get a list of outlines that contain variability charts
lstOutlines = vc << xpath("//OutlineBox[starts-with(., 'Variability Chart')]");

// each outline contains 2 charts (Y and StdDev)
// and each chart contains 2 axes (1st = y-axis, 2nd = x-axis)

// build a list of y-axes for the Y chart and also determine
// the minimum min and maximum max
lstAxes = {};
minmin = 1e6;
maxmax = -1e6;
for each({outline},lstOutlines,
	yAxis = outline[1][AxisBox(1)];
	minmin = min(minmin,yAxis<<getmin);
	maxmax = max(maxmax,yAxis<<getmax);
);

// apply common scaling to the y-axis of the Y plots
for each({outline},lstOutlines,
	yAxis = outline[1][AxisBox(1)];
	yAxis << max(maxmax);
	yAxis << min(minmin);
);

 

 

-Dave
Hegedus1
Level III

Re: Is there a way to set the plot ranges for all plots in a platform the same?

Hi,

I propagated the settings for the ranges successfully but perhaps slightly differently.  My method:

1. Set the ranges in in one graph

2. Right -Click on the axis and "Edit > Copy Axis Settings"

3. Ctrl-Right-Click "Edit>Paste Axis Settings"

 

The simple ctrl - Axis settings doesn't do it as you have already found out.

 

Andy

TheDude
Level III

Re: Is there a way to set the plot ranges for all plots in a platform the same?

Andy, this is almost as tedious as changing the axes limits by hand one by one.

mikedriscoll
Level VI

Re: Is there a way to set the plot ranges for all plots in a platform the same?

The 'ctrl' in step 3 will apply the settings to all plots in the window.  It's pretty quick and likely the fastest way to do it without scripting.  

TheDude
Level III

Re: Is there a way to set the plot ranges for all plots in a platform the same?

I see.

 

Thank you for this.

 

It is a completely non-intuitive method (typical JMP). 

txnelson
Super User

Re: Is there a way to set the plot ranges for all plots in a platform the same?

@TheDude, If you have a methodology that you think would be better, I suggest that you place that in the JMP Wish List.  The JMP folks will then take a look and hopefully come up with an improved methodology.   I have done this in the past, and have had the JMP Folks come back and show me why my suggestion was short sighted.......and I have also had to opposite happen, where they came back to me and worked through my suggested methodology, and it was implemented into the next release of JMP.

Jim