具有指定範圍的參考線可用於顯示彩色區域。這是一個簡單的例子。

names default to here(1);
dt =
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );
ccb = Control Chart Builder(
Variables( Y( :height ) )
);
ccbr = ccb << report;
ccbr[AxisBox(2)] << Add Ref Line( {65, 70}, "Solid", "Yellow", "", 1, 0.25 );
使用 Send to Report() 不是編寫腳本的好習慣。
請參閱軸參考線變化的示例:
Names Default to Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
ccb = dt << Control Chart Builder( Variables( Y( :weight ) ), Show Control Panel( 0 ) );
rpt = ccb << Report;
rpt[AxisBox(2)] << Add Ref Line( { 90, 100 }, "Solid", "Red" );你好,
控製圖生成器帶有根據區域應用的陰影區域。 我希望能夠自定義區域,以便圖表顯示我特別想要的區域,而不是指定的區域。 有沒有辦法自定義或更改區域設置? 例如,我希望綠色區域為 0-100,黃色區域為 100-300,紅色區域為 300-500。
感謝您的時間。
Control Chart Builder(
Size(534, 456),
Show Control Panel(0),
Variables(
Subgroup(:"Point of Use Sample ID-Result Units-Date Collected-1/3/2023"n),
Y(:"211-ppb-114.2"n)
),
Chart(Position(1), Limits(Shade Zones(1)), Add Spec Limits({LSL(0), USL(500), Target(250)})),
SendToReport(
Dispatch(
{},
"211-ppb-114.2",
ScaleBox,
{Format("Best", 12), Min(-7.39525022607722), Max(502.242588833477), Inc(100),
Minor Ticks(1), Add Ref Line(0, "Solid", "Blue", "LSL", 1),
Add Ref Line(500, "Solid", "Blue", "USL", 1),
Add Ref Line(250, "Solid", "Blue", "Target", 1)}
),
Dispatch(
{},
"graph display 1 title",
TextEditBox,
{Set Text("Individual & Moving Range chart of 211-ppb")}
),
Dispatch({}, "Subgroup display 1 title", TextEditBox, {Set Text("Date")}),
Dispatch({}, "Y display 1 title", TextEditBox, {Set Text("211-ppb")}),
Dispatch(
{},
"Control Chart Builder",
FrameBox,
{Grid Line Order(2), Reference Line Order(1)}
)
)
)