Ciao a tutti,
Non sto ponendo una domanda, ma sto proponendo una soluzione che ho trovato per quando si desidera aggiungere le impostazioni degli assi da un grafico a molti altri nella piattaforma di screening dei processi. Ad esempio, vorrei prendere questa personalizzazione che ho effettuato su questo grafico in alto a sinistra e aggiungerla a tutti gli altri:

Se fai clic con il pulsante destro del mouse sull'asse del grafico (ad esempio l'asse X) e selezioni "Copia impostazioni asse", quindi esegui lo script seguente, queste impostazioni verranno applicate a tutti gli altri grafici. Comunica allo script se stai modificando l'asse X o Y.

Fammi sapere se hai domande!
Grazie,
Ben
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 />
È possibile farlo anche tramite trasmissione e utilizzando le impostazioni di Incolla asse. Questo modificherà i valori min/max dell'asse, il che a volte può essere un problema, ma è possibile incollare prima lo script in una nuova finestra di script, eliminare le impostazioni, copiarlo di nuovo e quindi trasmettere e incollare.