我正在尝试使用分布来创建直方图 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>