Blacking
This commit is contained in:
@@ -50,7 +50,7 @@ class PlotUpdate(AutoUpdates):
|
|||||||
|
|
||||||
# plot() will throw RPCResponseTimeoutError
|
# plot() will throw RPCResponseTimeoutError
|
||||||
try:
|
try:
|
||||||
if len(info.scan_report_devices)==2:
|
if len(info.scan_report_devices) == 2:
|
||||||
# 2D plot
|
# 2D plot
|
||||||
dev_x = info.scan_report_devices[0]
|
dev_x = info.scan_report_devices[0]
|
||||||
dev_y = info.scan_report_devices[1]
|
dev_y = info.scan_report_devices[1]
|
||||||
@@ -61,9 +61,9 @@ class PlotUpdate(AutoUpdates):
|
|||||||
title=f"Scan {info.scan_number}",
|
title=f"Scan {info.scan_number}",
|
||||||
x_label=dev_x,
|
x_label=dev_x,
|
||||||
y_label=dev_y,
|
y_label=dev_y,
|
||||||
z_label=det
|
z_label=det,
|
||||||
)
|
)
|
||||||
elif len(info.scan_report_devices)==1:
|
elif len(info.scan_report_devices) == 1:
|
||||||
# 1D plot
|
# 1D plot
|
||||||
dev_x = info.scan_report_devices[0]
|
dev_x = info.scan_report_devices[0]
|
||||||
plt1.plot(
|
plt1.plot(
|
||||||
@@ -98,4 +98,3 @@ class PlotUpdate(AutoUpdates):
|
|||||||
# return
|
# return
|
||||||
super().handler(info)
|
super().handler(info)
|
||||||
self.plot_handler(info)
|
self.plot_handler(info)
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# pylint: disable=undefined-variable
|
||||||
# import bec
|
# import bec
|
||||||
# import bec_lib.devicemanager.DeviceContainer as dev
|
# import bec_lib.devicemanager.DeviceContainer as dev
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user