Incidentally, I know I haven't used the "Add Ref Line" syntax in any of the above, because I'm unfamiliar with it myself, but the following may help address a more general customization question. For any particular type of chart, I find the easiest way to customize it is to create a basic chart of the type I want via the main menu, then right-click on that chart, select "Customize...", and then click on the "+" symbol to get an empty script window, into which you can add anything you want - a line, text, polygon or whatever. In this example, if you then type "V Line(5)" in that window, you'll add a vertical line at X=5 to the chart. To see the script you've created by doing that, click on the red triangle above the chart, then select Script | Send to Script Window. It'll look something like the one underneath - after which you can continue editing that script until the resulting chart looks exactly the way you want it. You can then use your new script to generate your charts instead of going through the main menu.
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 9pt; font-family: "Courier New"; color: black;">dt
style="font-size: 9pt; font-family: "Courier New"; color: navy;">=
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Open
style="font-size: 9pt; font-family: "Courier New"; color: black;">(
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: purple;">"$SAMPLE_DATA/Quality
Control/Coating.jmp"
style="font-size: 9pt; font-family: "Courier New"; color: black;">
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 9pt; font-family: "Courier New"; color: green;">/*
Create a basic variability
chart */
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 9pt; font-family: "Courier New"; color: black;">Variability
Chart(
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
Y(
style="font-size: 9pt; font-family: "Courier New"; color: navy;">:
style="font-size: 9pt; font-family: "Courier New"; color: black;">Weight
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
X(
style="font-size: 9pt; font-family: "Courier New"; color: navy;">:
style="font-size: 9pt; font-family: "Courier New"; color: black;">Sample
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
Std
Dev Chart(
style="font-size: 9pt; font-family: "Courier New"; color: teal;">0
style="font-size: 9pt; font-family: "Courier New"; color: black;">
)
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 9pt; font-family: "Courier New"; color: green;">/*
style="font-size: 9pt; font-family: "Courier New"; color: green;">
style="">
After
you've finished customizing it as described above,
style="font-size: 9pt; font-family: "Courier New"; color: green;">
style="">
the
script might look something like the following, which
style="font-size: 9pt; font-family: "Courier New"; color: green;">
style="">
you
can carry on editing until you get the effects you want.
style="font-size: 9pt; font-family: "Courier New"; color: green;">*/
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 9pt; font-family: "Courier New"; color: black;">Variability
Chart(
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
Y(
style="font-size: 9pt; font-family: "Courier New"; color: navy;">:
style="font-size: 9pt; font-family: "Courier New"; color: black;">Weight
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
X(
style="font-size: 9pt; font-family: "Courier New"; color: navy;">:
style="font-size: 9pt; font-family: "Courier New"; color: black;">Sample
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
Std
Dev Chart(
style="font-size: 9pt; font-family: "Courier New"; color: teal;">0
style="font-size: 9pt; font-family: "Courier New"; color: black;">
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
SendToReport(
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
Dispatch(
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
{
style="font-size: 9pt; font-family: "Courier New"; color: purple;">"Variability
Chart for Weight"
style="font-size: 9pt; font-family: "Courier New"; color: black;">}
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 9pt; font-family: "Courier New"; color: purple;">"Variability
Chart"
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
FrameBox
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
Add
Graphics Script(
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 9pt; font-family: "Courier New"; color: teal;">2
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
Description(
style="font-size: 9pt; font-family: "Courier New"; color: purple;">"Script"
style="font-size: 9pt; font-family: "Courier New"; color: black;">
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Pen
Color
style="font-size: 9pt; font-family: "Courier New"; color: black;">(
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: purple;">"red"
style="font-size: 9pt; font-family: "Courier New"; color: black;">
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Pen
Size
style="font-size: 9pt; font-family: "Courier New"; color: black;">(
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: teal;">1
style="font-size: 9pt; font-family: "Courier New"; color: black;">
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">V
Line
style="font-size: 9pt; font-family: "Courier New"; color: black;">(
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: teal;">5
style="font-size: 9pt; font-family: "Courier New"; color: black;">
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Pen
Color
style="font-size: 9pt; font-family: "Courier New"; color: black;">(
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: purple;">"blue"
style="font-size: 9pt; font-family: "Courier New"; color: black;">
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Pen
Size
style="font-size: 9pt; font-family: "Courier New"; color: black;">(
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: teal;">1
style="font-size: 9pt; font-family: "Courier New"; color: black;">
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">V
Line
style="font-size: 9pt; font-family: "Courier New"; color: black;">(
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: teal;">7
style="font-size: 9pt; font-family: "Courier New"; color: black;">
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
)
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
)
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">
)
style="font-size: 9pt; font-family: "Courier New"; color: black;">)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: green;">//
End of program;
style="font-size: 9pt; font-family: "Courier New"; color: black;">