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

Set the correct scale of a graph

Hi Community!

I have a script in which i create many distributions and then i print the Lower and Upper TI lines on the histograms. The problem is that sometimes the Lower and Upper TI are outside of the visualized region and i need to manually change the scale of every graph. On the opposite, i tried to store in variables the Lower and Upper TI values and to use them to set the scale of the histograms but this method leads to data and outliers not visualized. Do you know how to automatically set the right scale in order to include all the data (also the outliers) and these lines?

PS: The histograms are about different properties with different ranges which i don't know before the distributions, it is not possible to set the same scale for all of them. 

 

Thank you!

2 ACCEPTED SOLUTIONS

Accepted Solutions
txnelson
Super User

Re: Set the correct scale of a graph

If you set the TI values as the Column Property, Upper and Lower Response Limits, and indicate to "Show Limits"

txnelson_0-1730989036106.png

Those limits will be displayed on the graphs and will adjust the graphs to insure the limits are displayed

txnelson_1-1730989135139.png

 

Jim

View solution in original post

jthi
Super User

Re: Set the correct scale of a graph

You will have to evaluate them. Below is one way of doing it

Eval(
	Eval Expr(
		Data Table("Tensile AB-V-M-Rp"):Rp0.2MPa << Set Property(
			"Response Limits",
			{Goal(Maximize), Lower(Expr(LowerTI)), Upper(Expr(UppertTI)), Importance(1), Show Limits(1)}
		)
	)
);
-Jarmo

View solution in original post

5 REPLIES 5
jthi
Super User

Re: Set the correct scale of a graph

With a script you can calculate the min/max values for graphs if necessary.

 

Few questions:

  1. How does you data look like?
  2. Could you utilize spec limit column properties?
  3. Can you provide example of your script and data?

 

-Jarmo
txnelson
Super User

Re: Set the correct scale of a graph

If you set the TI values as the Column Property, Upper and Lower Response Limits, and indicate to "Show Limits"

txnelson_0-1730989036106.png

Those limits will be displayed on the graphs and will adjust the graphs to insure the limits are displayed

txnelson_1-1730989135139.png

 

Jim

Re: Set the correct scale of a graph

Hi txnelson,

 

I like the idea but I am trying to do it automatically via script. 

 

I tried with:
// Change column property: Rp0.2MPa
Data Table( "Tensile AB-V-M-Rp" ):Rp0.2MPa << Set Property(
"Response Limits",
{Goal( Maximize ), Lower( LowerTI ), Upper( UppertTI ), Importance( 1 ), Show Limits( 1 )}
);

 

in which LowerTI and UpperTI are variable used to store the numerical values of the tolerance interval but It doesn't work, I think it is mandatory to put the explicit number.

jthi
Super User

Re: Set the correct scale of a graph

You will have to evaluate them. Below is one way of doing it

Eval(
	Eval Expr(
		Data Table("Tensile AB-V-M-Rp"):Rp0.2MPa << Set Property(
			"Response Limits",
			{Goal(Maximize), Lower(Expr(LowerTI)), Upper(Expr(UppertTI)), Importance(1), Show Limits(1)}
		)
	)
);
-Jarmo

Re: Set the correct scale of a graph

This is perfect for what I want to do, Thank you!