cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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.

Recommended Articles