Hi @Neo,
The +/-10 was just to illustrate the point - it's simple to set the Axis limits to +/-5% instead by changing to something like the below:
dt= current data table();
Lim = dt:data << Get Property ("Spec Limits");
// Change column property: data
dt:data << Set Property(
"Axis",
{Min( (Lim ["LSL"]*.95) ), Max( (Lim ["USL"]*1.05) ), Inc( 10 ), Minor Ticks( 1 )}
);
Of course, taking this approach will still run into issues if your data breaches both your spec limit, and whatever level you choose for the axis limit.
As you're on 16.2.0, the easiest first point of call would be to ask your site JMP representative to upgrade to JMP 17 to see if that helps resolve the issue - As I said, I can't duplicate your exact problem when I run your script in 17.1, so that will hopefully be the simplest way to resolve this!