Subscribe Bookmark RSS Feed

Changing Overlay Plot parameters in a Script

fanienel

Community Trekker

Joined:

Mar 6, 2012

Hi,

I would like to plot multiple Overlay plots using a script.

I change the the variable to be plotted on each axis using the string variables xAx,mq, m2 and s1:

plt=dt101<<Overlay Plot(

X( parse(xAx) ),

Y(

  parse(m1) ,

  parse(m2) ,

  parse(s1)

),

...

This works fine, but I need to change the line width

Y Scale( Left, Left, Right ),

Connect Thru Missing( 1 ),

  :Name(m1)(Overlay Marker( 8 ), Line Width( 4 )),

...

JMP returns an error:

1516_2012-03-07_082251.png

So I guess I do not understand the :Name() bit correctly

Any help / comments?

1 REPLY
XanGregg

Staff

Joined:

Jun 23, 2011

Name() is not really a function -- it's special quoting operator for the parser, so it doesn't evaluate its "argument". Not sure what the best solution is, but you can use Substitute() if nothing else to replace m1 with a quoted string.