Skip to content
Snippets Groups Projects
Commit 21273d6f authored by Lan Dam's avatar Lan Dam
Browse files

plotting_widget.py fix bug when zooming inside gap where there's no data

parent 2dfd3db3
No related branches found
No related tags found
1 merge request!119separate data at gaps/overlaps
Pipeline #2530 passed with stage
in 2 minutes and 44 seconds
......@@ -575,6 +575,8 @@ class PlottingWidget(QtWidgets.QScrollArea):
tr_min_ys = []
tr_max_ys = []
for x, y in zip(ax.x_list, ax.y_list):
if len(x) == 0:
continue
if self.min_x > x[-1] or self.max_x < x[0]:
continue
ret = get_total_miny_maxy(x, y, self.min_x, self.max_x)
......
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