你好
我希望永久更改以下格式:
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" )} )}
)
)
);
我希望這有幫助。
菲爾