你好
我希望永久更改以下格式:
1)控制限制为红色虚线
2)规格限制为红色实线
我可以在 Platforms中更改颜色,但不能更改线型,我不想继续进入Customization进行此操作,任何想法
如果是脚本问题,请告诉我如何使其永久存在,仍然是新手
提前致谢
首先绘制控制图并自定义线格式。
(我使用了JMP中样本数据中的Big Class示例数据。)
然后为此捕获JSL脚本。从“控制图构建器”红色三角形菜单>“保存脚本”>“到脚本窗口”:
Control Chart Builder(
Size( 508, 438 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Y( :height ) ),
SendToReport(
Dispatch(
{},
"Control Chart Builder",
FrameBox,
{DispatchSeg( Line Seg( 3 ), {Line Style( "Dotted" )} ),
DispatchSeg( Line Seg( 4 ), {Line Style( "Dotted" )} )}
)
)
如果运行此脚本,它将使用您的自定义重新创建完全相同的控制图(在这种情况下为虚线)。
现在,我们可以自定义脚本,以便您可以指定其他Y变量。
在开始时添加以下代码段,将弹出一个“列”对话框:
//This bit creates a new object called col_dlg using the Column Dialog function
col_dlg = Column Dialog(
_yVar = ColList( "Y, Variable" )
);
然后,用引用col_dlg中Y变量的JSL的另一部分替换控制图脚本中的Y变量。 :
col_dlg["_yVar"]
最终脚本应如下所示:
//This version generalises to any (continuous) column in the current data table
//This is done by using the Column Dialog function
//And then substituting in col_dlg"_yVar" for the column name
//This bit creates a new object called col_dlg using the Column Dialog function
col_dlg = Column Dialog(
_yVar = ColList( "Y, Variable" )
);
//This bit is as before but substituting in col_dlg"_yVar"
Control Chart Builder(
Show Capability( 0 ),
Variables( Y( col_dlg["_yVar"] ) ),
SendToReport(
Dispatch(
{},
"Control Chart Builder",
FrameBox,
{DispatchSeg( Line Seg( 3 ), {Line Style( "Dotted" )} ),
DispatchSeg( Line Seg( 4 ), {Line Style( "Dotted" )} )}
)
)
);
我希望这有帮助。
菲尔