JMP17 變異性圖表行圖例的問題我正在嘗試在 VC 圖中添加行圖例。 但是,sendToReport 不會向所有繪圖添加圖例。 它僅適用於第一個圖,但不適用於其他 VC 圖表。 它曾經在 JMP 16 中工作得很好。

有解決辦法嗎?
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Variability Data/2 Factors Crossed.jmp" );
obj = dt << Variability Chart( Y( :Measurement,:Standard ), X( :Operator, :part# ),
SendToReport(
Dispatch(
{"",
""},
"Variability Chart",
FrameBox,
{Row Legend(
Operator,
Color( 1 ),
Color Theme( "JMP Default"(1) ),
Marker( 0 ),
Marker Theme( "" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
)
) );自動化和腳本編寫回复:JMP17 變異性圖表行圖例的問題我一直無法將圖例直接添加到情節中。圖例總是顯示在單獨的窗口中,這令人沮喪。很想知道是否有人可以解決這個問題,或者只需將其添加到願望清單中即可。
回复:JMP17 變異性圖表行圖例的問題您需要將圖例代碼發送到您感興趣的大綱節點。
dt = Open( "$SAMPLE_DATA/Variability Data/2 Factors Crossed.jmp" );
obj = Variability Chart(
Y( :Measurement, :Standard ),
X( :Operator, :part# ),
SendToReport(
Dispatch(
{"Variability Gauge Analysis for Measurement",
"Variability Chart for Measurement"},
"Variability Chart",
FrameBox,
{Row Legend(
:Operator,
Color( 1 ),
Color Theme( "JMP Default"(1) ),
Marker( 0 ),
Marker Theme( "" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
),
Dispatch(
{"Variability Gauge Analysis for Standard",
"Variability Chart for Standard"},
"Variability Chart",
FrameBox,
{Row Legend(
Operator,
Color( 1 ),
Color Theme( "JMP Default"(1) ),
Marker( 0 ),
Marker Theme( "" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
)
)
);回复:JMP17 變異性圖表行圖例的問題@tonya_mauldin我有 200 多列,對每列進行暴力破解並不是最好的方法。
Col_names = dt << get column names(); /// contains 200+ columns
obj = dt << Variability Chart( Y( Eval(Col_names) ), X(:LotNumber, :WaferId),
SendToReport(
Dispatch(
{"",
""},/// is there a way to reference the column name for 200+ colunm names here?
"Variability Chart",
FrameBox,
{Row Legend(
Operator,
Color( 1 ),
Color Theme( "JMP Default"(1) ),
Marker( 0 ),
Marker Theme( "" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
)
) );
回复:JMP17 變異性圖表行圖例的問題有用。 謝謝賈莫
回复:JMP17 變異性圖表行圖例的問題一種選擇是使用 XPath 獲取對 FrameBox 的引用。
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Variability Data/2 Factors Crossed.jmp");
obj = dt << Variability Chart(
Y(:Measurement, :Standard),
X(:Operator, :part#)
);
(Report(obj) << XPath("//FrameBox")) << Row Legend(
Operator,
Color(1),
Color Theme("JMP Default"(1)),
Marker(0),
Marker Theme(""),
Continuous Scale(0),
Reverse Scale(0),
Excluded Rows(0)
);
此示例使用所有框架框,但您很可能希望限制 XPath 查詢中的選擇或使用特定索引。
這也與此討論有點相關使用頁面時在構建器上的每個圖表上顯示圖例
編輯:如何在 XPath 和索引中使用 xml 屬性及其值的示例:
查看更多...