創建後編輯控製圖我正在嘗試創建一個腳本來格式化過程篩選工具的控製圖的輸出,使它們更漂亮。 很明顯,我不能進去修改Process Screening工具本身的代碼,所以我面臨的問題是:
給定一個預先存在的控製圖對象,我如何:
1.在子分組中添加一列
2.刪除移動範圍圖
作為參考,我目前有一個我的控製圖我能夠成功運行的對象myControlChart< .
回复:創建後編輯控製圖我能夠找到解決方案! 關鍵是獲得圖形生成器框。
var = Current Report(); //Returns a reference to the report that's currently open, i.e. the Control Chart generated by Process Screening
gbb = var[GraphBuilderBox( 1 )]; //Returns a reference to the actual Graph
gbb << removeVariable( 1 ); //This is a case of lucky guess - not sure why this removes the moving average chart, but it does.
gbb << addVariable( {:Month, Role( "Subgroup" )} ); //Adds the month to the "X Axis" of the control chart.
我希望這對將來的任何人都有幫助!
回复:創建後編輯控製圖你好@大衛勒伯,
在 Analyze->Quality and Process 下使用 Control Chart Builder 可能會更幸運。
如果您將列放在 y 軸上,它將生成圖表,然後您可以從紅色熱按鈕檢查 JSL 代碼。 你會得到這樣的東西(如果你也有一個 x 列):
Control Chart Builder(
Show Two Shewhart Charts( 0 ),
Show Capability( 0 ),
Variables( Subgroup (:X-column here ), Y( :Y-column here ) ),
Chart( Position (1), Points( Statistic( "Individual" ) ), Limits( Sigma( "Moving Range" ) ) ),
Chart( Position( 2 ), Limits( Sigma( "Moving Range" ) ) )
);
要解決你的第二點,只需刪除“圖表(位置(2)......”的“Poisition(1)”部分和整個部分。 然後您將得到 XBar 圖表。
例如,您也可以轉到分析->質量和過程->控製圖->Xbar,具體取決於您真正想要的。
我不確定我是否理解你想對你的第一點做什麼。
希望這可以幫助!,
DS