Skip to content
Snippets Groups Projects
Commit cea36a78 authored by Kien Le's avatar Kien Le
Browse files

Fix problem when zooming

parent fac2fd03
No related branches found
No related tags found
1 merge request!108Fix RT130 plot failing
Pipeline #2494 passed with stage
in 2 minutes and 52 seconds
......@@ -484,7 +484,7 @@ class PlottingWidget(QtWidgets.QScrollArea):
# channel not plotted
continue
c_data = self.plotting_data1[chan_id]
self.get_zoom_data(c_data, chan_id)
self.get_zoom_data(c_data, chan_id, self.plotting_data1)
for chan_id in self.plotting_data2:
c_data = self.plotting_data2[chan_id]
self.get_zoom_data(c_data, chan_id)
......@@ -511,6 +511,10 @@ class PlottingWidget(QtWidgets.QScrollArea):
new_min_y = None
new_max_y = None
if hasattr(ax, 'x_list'):
if not hasattr(ax, 'y_list'):
# dotForTime plots have attribute 'x_list' but not
# 'y_list'
continue
total_points = 0
tr_min_ys = []
tr_max_ys = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment