restructured common mx utility files
This commit is contained in:
1 parent
1b2e91e243
commit
0b935fd83f
1 file changed
+3
-11
@@ -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")
|
||||
Reference in new issue
Block a user