mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
fix: gui event removing bugs
This commit is contained in:
@ -163,7 +163,7 @@ class BasicPlot(QtWidgets.QWidget):
|
|||||||
region = self.roi_selector.getRegion()
|
region = self.roi_selector.getRegion()
|
||||||
self.label.setText(f"x = {(10**region[0]):.4f}, y ={(10**region[1]):.4f}")
|
self.label.setText(f"x = {(10**region[0]):.4f}, y ={(10**region[1]):.4f}")
|
||||||
return_dict = {
|
return_dict = {
|
||||||
"qranges": [
|
"horiz_roi": [
|
||||||
np.where(self.plotter_data_x[0] > 10 ** region[0])[0][0],
|
np.where(self.plotter_data_x[0] > 10 ** region[0])[0][0],
|
||||||
np.where(self.plotter_data_x[0] < 10 ** region[1])[0][-1],
|
np.where(self.plotter_data_x[0] < 10 ** region[1])[0][-1],
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user