Set the correct scale of a graphHi 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!
Automation and ScriptingRe: Set the correct scale of a graphYou 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)}
)
)
);
Re: Set the correct scale of a graphHi 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.
Re: Set the correct scale of a graphIf you set the TI values as the Column Property, Upper and Lower Response Limits, and indicate to "Show Limits"

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

Re: Set the correct scale of a graphWith a script you can calculate the min/max values for graphs if necessary.
Few questions:
- How does you data look like?
- Could you utilize spec limit column properties?
- Can you provide example of your script and data?
Re: Set the correct scale of a graphThis is perfect for what I want to do, Thank you!