Skip to content
Snippets Groups Projects

Fix problem where mass position channels after the first one not being zoomed

Merged Kien Le requested to merge bug-#201-masspos_channels_not_zooming into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -616,7 +616,7 @@ class PlottingWidget(QtWidgets.QScrollArea):
@@ -616,7 +616,7 @@ class PlottingWidget(QtWidgets.QScrollArea):
total_points = 0
total_points = 0
tr_min_ys = []
tr_min_ys = []
tr_max_ys = []
tr_max_ys = []
x, y = ax.x_list, ax.y_list
x, y = ax.x_center, ax.y_center
if len(x) == 0:
if len(x) == 0:
continue
continue
if self.min_x > x[-1] or self.max_x < x[0]:
if self.min_x > x[-1] or self.max_x < x[0]:
Loading