创建后编辑控制图我正在尝试创建一个脚本来格式化过程筛选工具的控制图的输出,使它们更漂亮。 很明显,我不能进去修改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