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 属性及其值的示例:
查看更多...