使用窗口名称而不是使用图表句柄将图表发送到日志?考虑以下示例脚本(我的实际问题的简化版本)
Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
//Scatt3D = dt << Scatterplot 3D( Y( :age, :height ), X Axis( :age ), Y Axis( :height ) );
include ("plotScatterPlot.jsl");
Window ("Big Class - Scatterplot 3D of age, height")<< journal;
//Scatt3D << journal在哪里plotScatterPlot.jsl 包含
Scatt3D = dt << Scatterplot 3D( Y( :age, :height ), X Axis( :age ), Y Axis( :height ) );
它生成一个带有窗口名称的 3D 散点图
"Big Class - Scatterplot 3D of age, height"
我可以使用
Scatt3D << journal
但是我需要使用窗口名称生成日志
Window ("Big Class - Scatterplot 3D of age, height")<< journal;这是行不通的。 我能否得到一些帮助以使其正常工作?
(我在 JMP13 上)。
图形脚本编写回复:使用窗口名称而不是使用图表句柄将图表发送到日志?以下 JSL 将根据 JMP 13 中的窗口名称生成日志
Window ("Big Class - Scatterplot 3D of age, height")[outlinebox(1)]<< journal;回复:使用窗口名称而不是使用图表句柄将图表发送到日志?谢谢@txnelson .这适用于我提供的示例。 但是,对于我正在处理的实际问题,我遇到了错误。
在我的实际问题中,图表窗口(热图)有一个名称。
"part16.08.02 6 - Graph Builder"
跑步
Window ("part16.08.02 6 - Graph Builder, height")[outlinebox(1)]<< journal;给我以下错误
expected character arg 1 in access or evaluation of 'Outline Box' , Outline Box/*###*/(1)
In the following script, error marked by /*###*/
Window( "part16.08.02 6 - Graph Builder, height" )[Outline Box/*###*/(1)] << journal
回复:使用窗口名称而不是使用图表句柄将图表发送到日志?我在使用时创建了日志
Window ("part16.08.02 6 - Graph Builder")[outlinebox(1)]<< journal;
它使用实际窗口的名称。你为什么用
Window ("MPD16.0008.02 6 - Graph Builder, height")
作为窗口名称?