Subscribe Bookmark RSS Feed

Disappearing Reference Line graph script

prismlink880

Community Trekker

Joined:

Apr 25, 2016

I have one script in which reference lines are automatically generated based on spec limits in a table (script needs to be JMP 7 compatible, which in a separate issue I can't set the spec values as properties for the pertinent table and to graph automatically ). It works in the first script I wrote, but tor some reason, when I incorporate these lines into another script, the plots are without the reference lines. When I select to "Save Script to Script Window" for the newly generated plot, it has no lines indicating that any reference line is plotted other than y=0 --- Add Ref Line( 0, Dotted, Medium Light Gray )

Also, in choosing a line color, I've seen the color written as both a string and not. Is there any functional difference in writing "Red" vs Red?

Current Data Table( y );

  Variability Chart(

  Y( :Etch_Rate ),

  X( :Chamber, :Sample_Date ),

  Std Dev Chart( 0 ),

  Connect Cell Means( 1 ),

  SendToReport(

  Dispatch( {"Variability Chart for Etch_Rate"}, "2", ScaleBox, {Min( theMin ), Max( theMax ), Add Ref Line( uLimit, Dotted, Red ),

  Add Ref Line( Avg, Dotted, Green ), Add Ref Line( lLimit, Dotted, Red )} ),

  Dispatch( {"Variability Chart for Etch_Rate"}, "Variability Chart", FrameBox, {Frame Size( 547, 281 ),Marker Size( 5 )} ),

  Dispatch( {"Variability Chart for Etch_Rate"}, "", NomAxisBox, Rotated Tick Labels( 1 ) )

  )

Thanks for the help!

1 REPLY
XanGregg

Staff

Joined:

Jun 23, 2011

I tried the sample data adapted script below and it worked, even in JMP 7.

To your general question about Red vs "Red". The quoted version is best going forward, since the unquoted version can be ambiguous if there is also a variable or data column named Red. Newer JMPs will use the quoted form in saved scripts for this reason, and there is a preference setting for making JMP more strict about it (Allow unquoted strings in JSL).

Open( "$SAMPLE_DATA/Variability Data/2 Factors Crossed.jmp" );

theMin = 0; theMax = 2; Avg = 1; uLimit = 1.5; lLimit = 0.5;

obj = Variability Chart(

  Y( :Measurement ),

  X( :Operator, :part# ),

  Std Dev Chart( 0 ),

  Connect Cell Means( 1 ),

  SendToReport(

  Dispatch(

  {"Variability Chart for Measurement"},

  "2",

  ScaleBox,

  {Min( theMin ), Max( theMax ), Add Ref Line( uLimit, Dotted, Red ),

  Add Ref Line( Avg, Dotted, Green ), Add Ref Line( lLimit, Dotted, Red )}

  ),

  Dispatch(

  {"Variability Chart for Measurement"},

  "Variability Chart",

  FrameBox,

  {Frame Size( 547, 281 ), Marker Size( 5 )}

  ),

  Dispatch( {"Variability Chart for Measurement"}, "", NomAxisBox, Rotated Tick Labels( 1 ) )

  )

);