我正在嘗試使用分佈來建立直方圖 By(: DeviceID),但是當我套用填滿顏色時,只有 By 語句中的最後一個圖表會變更為淺藍色。 無論我做什麼,只有最後一張圖改變顏色。 我只是希望圖表不是綠色的。
對我有用的選項:
1) 依裝置 ID 的顏色直方圖
2)顏色直方圖均為藍色

WaferRgPastMonth << Distribution(
Stack( 1 ),
Automatic Recalc( 1 ),
Continuous Distribution( Column( :Rg ), Horizontal Layout( 1 ), Vertical( 0 ) ),
By( :DeviceID ),
Local Data Filter( Close Outline( 1 ), Add Filter( columns( :FailDie ), Where( :FailDie == 0 ) ) ),
SendToReport(
Dispatch( {"Rg"}, "Distrib Outlier Box", FrameBox, {Frame Size( 350, 46 )} ),
Dispatch(
{"Rg"},
"Distrib Histogram",
FrameBox,
{Frame Size( 277, 110 ), DispatchSeg( Hist Seg( 1 ), {Line Color( {56, 82, 112} ), Fill Color( "Light Blue" )} )}
)
)
);
如果您重構程式碼,您將能夠將直方圖設定為您想要的顏色

names default to here(1);
// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );
dis = dt << Distribution(
Stack( 1 ),
Continuous Distribution(
Column( :weight ),
Quantiles( 0 ),
Summary Statistics( 0 ),
Horizontal Layout( 1 ),
Vertical( 0 )
),
By( :Sex )
);
dis<<HISTOGRAM color=""></HISTOGRAM>