使用窗口名稱而不是使用圖表句柄將圖表發送到日誌?考慮以下示例腳本(我的實際問題的簡化版本)
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")
作為窗口名稱?