- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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!
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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"
Those limits will be displayed on the graphs and will adjust the graphs to insure the limits are displayed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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)}
)
)
);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Set the correct scale of a graph
With 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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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"
Those limits will be displayed on the graphs and will adjust the graphs to insure the limits are displayed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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)}
)
)
);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Set the correct scale of a graph
This is perfect for what I want to do, Thank you!