你好,
我有从多个变量创建的控制图,但是我想更改轴标题以使它们匹配。 有没有一种快速的方法可以做到这一点而无需手动更改它们。 我尝试在执行此操作时按住 ctrl,但是由于某种原因,这似乎会更改 x 轴标题,有什么想法吗,谢谢?
你好@Mo_Hoque_95 ,
Brady 可能有一种简单的方法可以做到这一点,但我知道如何轻松做到这一点的唯一方法是使用脚本,特别是如果您有很多控制图。 您没有提到您是否使用旧版控制图 UI、控制图生成器 UI 或其他工具来创建控制图。 下面,此脚本打开 JMP 示例数据表,创建旧控制图,然后自定义所有 x 轴标签。 //======== 对 JSL 进行分段。第二个示例使用控制图生成器 UI。
祝你好运! 我希望有一个简单的替代方法。
Names Default to Here(1);
dt =Open("$Sample_Data/Quality Control/Steam Turbine Historical.jmp");
//==========JMP 14 Legacy Control Charts ==================================
// Saved the script of my control chart window to a script window
// Assigned the Control Chart report to cc using cc=
cc = Control Chart(
Group Size( 1 ),
KSigma( 3 ),
Chart Col( :Fuel, Individual Measurement ),
Chart Col( :Steam Flow, Individual Measurement ),
Chart Col( :Steam Temp, Individual Measurement ),
Chart Col( :MW, Individual Measurement ),
Chart Col( :Cool Temp, Individual Measurement ),
Chart Col( :Pressure, Individual Measurement )
);
//xpath creates a list of references to each box. Note the X or sequence
// AxisBox might have a different ID depending upon your use: Legacy Control Chart or Control Chart Builder
axx = cc << xpath("//AxisBox[@charID='1']/TextEditBox");
//now send a few customizing messages to all these axes
axx << {Set Font Size( 12 ), Set Font Style( "Bold" ), Font Color( 19 ),
Set Text( " Samples May 24 - Jun20" )};
//================== JMP 14 Using Control Chart Builder===============================================================
//JMP 15 and later versions have a better structure for X axis labels, I find the graph structure strange in v14
ccb14 = Control Chart Builder(
Show Capability( 0 ),
Variables( Y( :Fuel, :Steam Flow, :Steam Temp, :MW, :Cool Temp, :Pressure ) ),
Chart( Position( 1 ), Limits( Sigma( "Moving Range" ) ) ),
Chart( Position( 2 ), Limits( Sigma( "Moving Range" ) ) )
);
axxb14= ccb14 << xpath("//GraphBuilderTitleBox/TextEditBox");
//Every 3rd GraphTitleBox is the Xaxis or Subgroup axis
For(i=3, i<=nitems(axxb14), i=i+5,
axxb14[i]<< {Set Font Size( 12 ), Set Font Style( "Bold" ), Font Color( 19 ),
Set Text( " Samples May 24 - Jun20" )};
);
//========================JMP 15========================================================
/*
//It's my opinion, JMP 15 has better structure references , AxisBox for Subgroup
//this code is commented out since you are working with JMP14
ccb15 = Control Chart Builder(
Variables Y( :Fuel, :Steam Flow, :Steam Temp, :MW, :Cool Temp, :Pressure ) );
axxb15= ccb15 << xpath("//AxisBox['Subgroup']/TextEditBox");
axxb15 << {Set Font Size( 12 ), Set Font Style( "Bold" ), Font Color( 19 ),
Set Text( " Samples May 24 - Jun20" )};
您能否附上示例表以及示例控制图报告的已保存脚本? 这将帮助我们了解您的具体情况。 另外,请告诉我们“标题”的含义,因为我们可以将不止一个位置解释为标题。
干杯,
布雷迪