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 )
)}
)
)
);
);
大規模客製化回复:用於顯示帶有行圖例的變異性圖的循環你好湯姆,
與 Jim 發現的一樣,間歇性地運行和掛起需要很長時間。 但是我讓它工作了一次。
回复:用於顯示帶有行圖例的變異性圖的循環當我運行這段代碼時,它似乎陷入了循環。無論如何,JMP 似乎掛起。我正在運行版本 13.2.1
回复:用於顯示帶有行圖例的變異性圖的循環你好,
請運行以下代碼。
我希望它能完成工作。
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 ));
);