圖形生成器上的 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 腳本根據晶圓數量繪製所有列感謝您的幫助@tx尼爾森
感謝包含詳細信息和代碼的答案。
回复:圖形生成器上的 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 腳本根據晶圓數量繪製所有列你好@tx尼爾森,
感謝你的回复。
這些圖表是用您修改後的代碼繪製的。 關於修改後的代碼的一個額外問題。 當我使用社區的參考代碼來繪製分佈圖時,所有圖表都被匯總到一個報告中,這樣可以輕鬆導出到 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 ) ) )
)
);
