BookmarkSubscribe
Choose Language Hide Translation Bar
Highlighted
Yngeinstn
Community Trekker

graph with different target or spec limits

I have looked over some of the discussion regarding this matter but i have only found things that deal with shadding of a range..

 

I am seeking some help with just adding lines (see picture). Those lines represent the upper and lower spec limits (Y Axis) and the start and end points of the screening criteria (X Axis)


Thank YouPlot With Spec Lines.png

0 Kudos
1 REPLY 1
ian_jmp
Staff

Re: graph with different target or spec limits

You could use a graphics script. In the sample case, find 'HLine()' in 'Help > Scripting Index'. For eaxmple:

 

Screen Shot 2019-05-02 at 14.39.05.png

is created by this JSL:

NamesDefaultToHere(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt << Graph Builder(
						Size( 529, 453 ),
						Show Control Panel( 0 ),
						Show Legend( 0 ),
						Variables( X( :weight ), Y( :height ) ),
						Elements( Points( X, Y, Legend( 6 ) ), Smoother( X, Y, Legend( 7 ) ) ),
						SendToReport(
							Dispatch(
								{},
								"Graph Builder",
								FrameBox,
								{Add Graphics Script(
									1,
									Description( "LowerSpec" ),
									Pen Color( "Red" );
									H Line( 100, 140, 60 );
								), Add Graphics Script(
									3,
									Description( "UpperSpec" ),
									Pen Color( "Red" );
									H Line( 100, 140, 67 );
								), Grid Line Order( 2 ), Reference Line Order( 4 )}
							)
						)
					);

Once you have the plot, right click on the graphics box and select 'Customize...'.

0 Kudos