圖形生成器框中的 JSL 腳本根據晶圓編號繪製所有列您好,我正在嘗試根據晶圓編號繪製我的數據(多個參數)。 我從社區中找到了分佈圖的腳本。 因此,我通過將 Distribution 函數替換為 Graph Builder 函數對其進行了修改。 但是,報告中只顯示了一張圖表,而不是所有圖表。 我能就這個劇本給你一些建議嗎? 謝謝你。
dt = Current Data Table ();
// Get all of the continuous data columns
colNames = dt << get column names( string, continuous );
// Create the JSL to create the script
theExpr = "Graph Builder(
Size( 1414, 795 ),
Show Control Panel( 0 ),
Variables( X( :WF_NUM ), Y( colNames[1] ), Color( :WF_NUM ) ),
Elements( Box Plot( X, Y, Legend( 7 ) ) )
);
)";
For( i = 1, i <= N Items( colNames ), i++,
theExpr = theExpr || ", Graph Builder(
Size( 1414, 795 ),
Show Control Panel( 0 ),
Variables( X( :WF_NUM ), Y(colNames[" || Char( i ) || "] ), Color( :WF_NUM ) ),
Elements( Box Plot( X, Y, Legend( 7 ) ) )
)");
// place the closing ")" to complete the command string
theExpr = theExpr || ");";
// Run the created JSL
Eval(Parse(theExpr));
謝謝您的幫助。
多米尼克
圖形腳本回复:圖形生成器框上的 JSL 腳本繪製所有列與晶圓編號的關係謝謝您的幫助@txnelson
通過詳細信息和代碼欣賞答案。
回复:圖形生成器框中的 JSL 腳本將所有列與晶圓編號相對應所需要做的就是將圖形生成放在 New Window() 函數中。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
// Change the name of the Wafer column to match the name used
// in the Graph Builder code
dt:wafer << set name( "WF_NUM" );
colNames = dt << get column names( string, continuous );
nw = New Window( "Graphs",
// Since there are 128 columns that could be plotted, the code has been
// modified to just produce 3 of the plots. The commented out code
// should replace the "i <= 3, i++," to plot all graphs
For( i = 1, i <= 3, i++, // N Items( colNames ), i++,
dt << Graph Builder(
Size( 1414, 795 ),
Show Control Panel( 0 ),
Variables(
X( :WF_NUM ),
Y( As Column( dt, colNames[i] ) ),
Color( :WF_NUM )
),
Elements( Box Plot( X, Y, Legend( 7 ) ) )
),
);
);回复:圖形生成器框上的 JSL 腳本繪製所有列與晶圓編號的關係你好@txnelson ,
感謝你的回复。
這些圖表是使用您修改後的代碼繪製的。 關於修改後的代碼的一個額外問題。 當我使用社區的參考代碼製作分佈圖時,所有的圖表都被匯總到一個報告中,可以很容易地導出到 powerpoint。 請問您簡化為匯總圖表到單個報告中的代碼需要哪些額外的行?
謝謝您的幫助。
多米尼克
回复:圖形生成器框中的 JSL 腳本將所有列與晶圓編號相對應您提供的 JSL 可以簡化以生成您想要的圖表。以下是您的代碼的修改
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
// Change the name of the Wafer column to match the name used
// in the Graph Builder code
dt:wafer << set name( "WF_NUM" );<BR />colNames = dt << get column names( string, continuous );
// Since there are 128 columns that could be plotted, the code has been
// modified to just produce 3 of the plots. The commented out code
// should replace the "i <= 3, i++," to plot all graphs
For( i = 1, i <= 3, i++, // N Items( colNames ), i++,
dt << Graph Builder(
Size( 1414, 795 ),
Show Control Panel( 0 ),
Variables(
X( :WF_NUM ),
Y( As Column( dt, colNames[i] ) ),
Color( :WF_NUM )
),
Elements( Box Plot( X, Y, Legend( 7 ) ) )
)
);
