cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar

Why am I unable to save my variability charts automatically in a script ?

Hi all,

 

i am actually trying to use the fucntion of obj << save picture( "name", jpeg ); in my script because I am trying to get some of the variability charts automated and to be saved in a ppt file.

 

But it seems like the script does not pass the debug test. Any idea why is this so ?

 

image.png

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Why am I unable to save my variability charts automatically in a script ?

You need to save the picture from the Report output from the Variability Chart, not the platform itself. Below is the Save Picture example taken from the Scirpting Index

     Help==>Scripting Index

Names Default To Here( 1 );
//This message applies to all display box objects
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( :weight ), x( :height ) );
rbiv = biv << report;
rbiv << Save Picture( "path/to/example.png", "png" );
Jim

View solution in original post

4 REPLIES 4
txnelson
Super User

Re: Why am I unable to save my variability charts automatically in a script ?

You need to save the picture from the Report output from the Variability Chart, not the platform itself. Below is the Save Picture example taken from the Scirpting Index

     Help==>Scripting Index

Names Default To Here( 1 );
//This message applies to all display box objects
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( :weight ), x( :height ) );
rbiv = biv << report;
rbiv << Save Picture( "path/to/example.png", "png" );
Jim

Re: Why am I unable to save my variability charts automatically in a script ?

Thank you, Jim. It really helps. Thank you so much. 

 

However, I encountered another problem with this:

image.png

Is there anything wrong with my definition in the script ?

dt = open("Monitoring.jmp", invisible);

Close( dt, save ("C:\Users\Testing") );

 

Thank you, 

Ann

 

txnelson
Super User

Re: Why am I unable to save my variability charts automatically in a script ?

The syntax of the code you have specified is correct.  However, I can not verify that your "Monitoring.jmp" data table is available in the default directory.

Jim

Re: Why am I unable to save my variability charts automatically in a script ?

Thanks for the great help, Jim.