Subscribe Bookmark RSS Feed

How to Make JSL Automatic Script for Multiple Graphs More Concise?

LEDmaker

New Contributor

Joined:

Jun 19, 2017

I would like to reduce the length of the automatic scripts JMP creates when I plot many graph frames. e.g. here is a segment of code with many repeating lines:

...

Dispatch(

{},

"400",

ScaleBox,

{Legend Model(

6,

Properties( {Marker( "Circle" )} ),

Properties( 1, {Marker( "Circle" )} ),

Properties( 2, {Marker( "Circle" )} ),

Properties( 3, {Marker( "Circle" )} ),

Properties( 4, {Marker( "Circle" )} ),

Properties( 5, {Marker( "Circle" )} ),

Properties( 6, {Marker( "Circle" )} ),

Properties( 7, {Marker( "Circle" )} ),

Properties( 8, {Marker( "Circle" )} ),

Properties( 9, {Marker( "Circle" )} ),

Properties( 10, {Marker( "Circle" )} )

)})

...

 

Is there a way to do something like:

Properties ([1,10], {Marker("Circle")})

 

or similar to capture all of these repeating lines into one line that is more readable and editable?

 

 

 

1 REPLY
stephen_pearson

Community Trekker

Joined:

Oct 6, 2014

You could make it shorter by setting the platform defaults to be the setting you are using. As far as I am aware the code to do what you are suggesting is more like 5 lines and would probably be less readable.

 

I would ask what is wrong with the automatically generated code?