具有指定范围的参考线可用于显示彩色区域。这是一个简单的例子。

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)}
)
)
)