For 循环显示带有行图例的变异图我想绘制多个变异图,并在右侧显示行图例。但是当使用 for 循环执行此操作时,行图例无法显示。有人可以请建议吗?
我打算为每个参数绘制图表。

相反,我只得到下面的图表,行图例显示在右侧。

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );
/* Obtain a list of numeric/continuous column names as strings */
colList = dt << Get Column Names( Continuous, String );
For( i = 2, i <= Nitems( colList ), i++,
Variability Chart(
Y( colList[i] ),
X( :lot_id, :wafer ),
Connect Cell Means( 1 ),
Std Dev Chart( 0 ),
SendToReport(
Dispatch(
{},
"Variability Chart for " || colList[i],
OutlineBox,
{Set Title( "GROUP 1 Variability Chart for " || colList[i] )}
),
Dispatch(
{"Variability Chart for " || colList[i]},
"Variability Chart",
FrameBox,
{Row Legend(
lot_id,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 1 ),
Marker Theme( "Standard" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
)
)
);
);
大规模定制回复:For循环显示带有行图例的可变性图你好
请运行以下代码。
我希望它能胜任。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );
/* Obtain a list of numeric/continuous column names as strings */
colList = dt << Get Column Names( Continuous, String );
win = New Window("Example");
For( i = 2, i <= Nitems( colList ), i++,
win << Append(varobj = Variability Chart(
Y( Column(dt,colList[i]) ),
X( :lot_id, :wafer ),
Connect Cell Means( 1 ),Std Dev Chart( 0 )
));
(varobj << report)[OutlineBox(1)] << set Title("GROUP 1 " || ((varobj << report)[OutlineBox(1)] << Get Title));
(varobj << report)[FrameBox(1)] << Row Legend(Column(dt,"lot_id"),Color( 1 ),Marker( 1 ));
);回复:For循环显示带有行图例的可变性图当我运行此代码时,它似乎陷入了循环。 无论如何,JMP似乎挂起。 我正在运行13.2.1版
回复:For循环显示带有行图例的可变性图你好汤姆,
与Jim的发现相同,它需要花费很长时间才能间歇性地运行和悬挂。但是我一次就可以了。