cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
natalie_
Level V

How can I use JSL to create an "Overlay Plot" with data series?

Hi all,

I would like to create an overlay plot with multiple data series.  I see how I can copy the script and paste it into my code, but what if I don't know in advance how many columns I will have?  Also, what can I do about using different markers as well?

Here is a copy of my script.  This is one of my smaller files, so naturally I would't want to have to type in all those lines!  Thanks in advance.

Overlay Plot(

  X( :Drain_Voltage ),

  Y(

  :Y_17,

  :Y_18,

  :Y_19,

  :Y_20,

  :Y_21,

  :Y_22,

  :Y_23,

  :Y_24,

  :Y_25,

  :Y_26,

  :Y_27,

  :Y_28,

  :Y_29,

  :Y_30,

  :Y_31,

  :Y_32,

  :Y_33,

  :Y_34,

  :Y_35,

  :Y_36,

  :Y_37,

  :Y_38,

  :Y_39

  ),

  Overlay Axis << {{Min( 0.01 ), Max( 100 ), Inc( 1 ), Minor Ticks( 1 )}},

  :Y_17( Overlay Marker( 8 ) ),

  :Y_18( Overlay Marker( 1 ) ),

  :Y_20( Overlay Marker( 2 ) ),

  :Y_21( Overlay Marker( 5 ) ),

  :Y_22( Overlay Marker( 6 ) ),

  :Y_23( Overlay Marker( 17 ) ),

  :Y_24( Overlay Marker( 7 ) ),

  :Y_25( Overlay Marker( 11 ) ),

  :Y_26( Overlay Marker( 3 ) ),

  :Y_27( Overlay Marker( 18 ) ),

  :Y_28( Overlay Marker( 19 ) ),

  :Y_29( Overlay Marker( 24 ) ),

  :Y_30( Overlay Marker( 25 ) ),

  :Y_31( Overlay Marker( 26 ) ),

  :Y_32( Overlay Marker( 27 ) ),

  :Y_33( Overlay Marker( 28 ) ),

  :Y_34( Overlay Marker( 29 ) ),

  :Y_35( Overlay Marker( 30 ) ),

  :Y_36( Overlay Marker( 31 ) ),

  :Y_37( Overlay Marker( 9 ) ),

  :Y_38( Overlay Marker( 10 ) ),

  :Y_39( Overlay Marker( 8 ) ),

  SendToReport(

  Dispatch(

  {},

  "102",

  ScaleBox,

  {Min( 0.01 ), Max( 100 ), Inc( 1 ), Minor Ticks( 1 )}

  ),

  Dispatch( {}, "", AxisBox, {Add Axis Label( "Idleak (uA)" )} ),

  Dispatch( {}, "Y", TextEditBox, {Set Text( "Idleak (uA)" )} ),

  Dispatch( {}, "Overlay Plot Graph", FrameBox, {Frame Size( 740, 585 )} )

  )

)

10 REPLIES 10
ian_jmp
Level X

Re: How can I use JSL to create an "Overlay Plot" with data series?

Remember 'Help > Scripting Index' is your friend here.

The example given is:

Names Default To Here( 1 );

ex = {11, 22, 33, 44, 55};

Remove From( ex, 3, 2 );

ex;

Recommended Articles