안녕하세요 여러분,
질문이라기보다는, 프로세스 스크리닝 플랫폼에서 하나의 차트 축 설정을 다른 여러 차트에 적용하고 싶을 때 제가 찾은 해결책을 공유하고 싶습니다. 예를 들어, 왼쪽 상단의 이 차트에 적용한 사용자 지정 설정을 다른 모든 차트에 추가하고 싶습니다.

그래프 축(예: X축)을 마우스 오른쪽 버튼으로 클릭하고 '축 설정 복사'를 선택한 다음 아래 스크립트를 실행하면 해당 설정이 다른 모든 차트에 적용됩니다. 스크립트에 X축 또는 Y축 중 어떤 축을 변경할지 알려주기만 하면 됩니다.

궁금한 점이 있으면 알려주세요!
감사해요,
벤
NamesDefaultToHere(1);
//blank out the variables
axis_type={};
axis={};
cur_rep = Current Report();
// Get the current report
//load in the 'run' expression
run_expr=expr(
// Get all AxisBox elements
axis = cur_rep << XPath("//AxisBox"); //use Xpath to grab the reference to all AxisBoxes in the report.
// Separate into y_axis (odd-numbered) and x_axis (even-numbered) - PScreening makes axisboxes into Y (AxisBox(1), AxisBox(3)) or X (AxisBox(2),AxisBox(4)) that can be distinguished by their number
y_axis = {};
x_axis = {};
//Sort through the 'axis' list and place them in either a Y or X axis list
For(i = 1, i <= N Items(axis), i++,
If(Mod(i, 2) == 1, // Odd index for Y-axis
Insert Into(y_axis, axis[i]),
Insert Into(x_axis, axis[i]) // Even index for X-axis
)
);
// Apply settings based on user choice
If(axis_type == 1,
For(i = 1, i <= N Items(y_axis), i++,
y_axis[i] << Paste Axis Settings
),
For(i = 1, i <= N Items(x_axis), i++,
x_axis[i] << Paste Axis Settings
)
););
//Startup with a window to choose the axis
nw=New Window("Choose axis type to update",
OutlineBox("Update Axes in Process Screening",
TextBox("Choose which axis type to update that you have copied axis settings from"),
cb=combobox({"Y","X"}),
ButtonBox("OK",
axis_type=cb<
<GET></GET>
<BR />
브로드캐스팅 후 '축 설정 붙여넣기' 기능을 사용해서도 같은 작업을 할 수 있습니다. 이 방법은 축의 최소/최대값을 변경하는데, 때때로 문제가 될 수 있습니다. 이럴 때는 먼저 스크립트를 새 스크립트 창에 붙여넣고, 해당 설정을 드래그해서 복사한 다음 브로드캐스팅 후 '붙여넣기'를 하면 됩니다.