Choose Language Hide Translation Bar
Highlighted
Ann_JMP_User
Level III

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
Highlighted
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
Highlighted
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

Highlighted
Ann_JMP_User
Level III

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

 

Highlighted
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
Highlighted
Ann_JMP_User
Level III

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

Thanks for the great help, Jim.
Article Labels

    There are no labels assigned to this post.