@jay_holavarri wrote:
I prefer this method, where I attach a line to the axis ... but that means I would have to script it.
fortunately, in JMP19 there is a new option for line plots:

One can use it to draw arrows:

like in New in Graph Builder for JMP 19
... and one can use it to add vertical lines to a plot "without scripting" : )

use the script to generate the plot and then use Graph Builder to steal the idea.
- The point plot uses the original Y values
- the Line plot uses 2 additional Y values to draw vertical lines - activate the option "within row"
- length of the lnies is defined via min/max
- if(:Lot Acceptance == "Reject", ...) is used to get vertical lines only for "reject"s
Open( "$SAMPLE_DATA/Tablet Production.jmp" );
Graph Builder(
Transform Column(
"max",
Formula( If( :Lot Acceptance == "Reject", Col Max( :Disso ) ) )
),
Transform Column(
"min",
Formula( If( :Lot Acceptance == "Reject", Col Min( :Disso ) ) )
),
Size( 1301, 506 ),
Graph Spacing( 4 ),
Variables(
X( :Blend Time ),
Y( :Disso ),
Y( :min, Position( 1 ) ),
Y( :max, Position( 1 ) )
),
Elements(
Points( X, Y( 1 )),
Line( X, Y( 2 ), Y( 3 ), Ordering( "Within Row" ) )
)
);