Error while running example - Save Picture ()I am on 16.2.0 (Windows 10).
While running the Save Picture (example) in the Scripting Index, I am getting the attached error. What is going wrong?
//:*/
<< Save Picture( "path/to/example.png", "png" );
/*:
//:*/
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
/*:
Data Table( "Big Class" )
//:*/
Names Default To Here( 1 );
//This message applies to all display box objects
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = dt << Bivariate( y( :weight ), x( :height ) );
rbiv = biv << report;
rbiv << Save Picture( "path/to/example.png", "png" );
/*:
File \path\to\example.png could not be saved in access or evaluation of 'Glue' , Names Default To Here( 1 ); /*###*/dt = Open( "$SAMPLE_DATA/Big Class.jmp" ); /*###*/
biv = dt << Bivariate( y( :weight ), x( :height ) ); /*###*/rbiv = biv << report; /*###*/
rbiv << Save Picture( "path/to/example.png", "png" ) /*###*/;
at line 3 in Scripting Index
Automation and ScriptingWindowsRe: Error while running example - Save Picture ()try something like
rbiv << Save Picture( "$DESKTOP/example.png", "png" );
to put the picture on the desktop. Or $DOCUMENTS , $TEMP , $DOWNLOADS for other interesting places.
Re: Error while running example - Save Picture ()The line
rbiv << Save Picture( "path/to/example.png", "png" );
contains an invalid path. It is assuming the viewer will change
path/to/
to a valid path on the users computer.
I suggest you pass this to JMP Support. There should at least be a comment indicating the line needs to be changed.