运行示例时出错 - 保存图片 ()我在 16.2.0 (Windows 10)。
在脚本索引中运行保存图片(示例)时,我收到附加错误。 出了什么问题?
//:*/
<< 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
图形脚本视窗Re: 运行示例时出错 - 保存图片 ()线
rbiv << Save Picture( "path/to/example.png", "png" );
包含无效路径。假设观众会改变
path/to/
到用户计算机上的有效路径。
我建议您将此传递给 JMP 支持。至少应该有一条注释表明该行需要更改。