From 0b935fd83f586d27bdd4fad85f7d811da1c47876 Mon Sep 17 00:00:00 2001 From: x10sa Date: Mon, 21 Sep 2026 09:04:11 +0200 Subject: [PATCH] restructured common mx utility files --- pxii_bec/macros/mxcomm_plot.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/pxii_bec/macros/mxcomm_plot.py b/pxii_bec/macros/mxcomm_plot.py index 7431ff3..384761c 100644 --- a/pxii_bec/macros/mxcomm_plot.py +++ b/pxii_bec/macros/mxcomm_plot.py @@ -94,12 +94,8 @@ def plot_fitted_data(data, fit_result, window_name="Fitting", plot_widget=None, # Display the fitted curve as a line without symbols. wf.get_curve("Fit").set(symbol_size=0) -def plot_scan_data( - data, - window_name="Fitting", - plot_widget=None, - title=None, -): + +def plot_scan_data(data, window_name="Fitting", plot_widget=None, title=None): """Plot completed scan data without a fitted curve.""" if isinstance(plot_widget, str): @@ -120,8 +116,4 @@ def plot_scan_data( wf.x_label = data["motor_name"] wf.y_label = data["signal_name"] - wf.plot( - x=data["x_data"], - y=data["y_data"], - label="Data", - ) + wf.plot(x=data["x_data"], y=data["y_data"], label="Data")