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

fix bug lacking of chan_db_info argument when calling set_axes_ylim()

parent 493aaceb
No related branches found
No related tags found
1 merge request!144fix bug lacking of chan_db_info argument when calling set_axes_ylim()
......@@ -37,6 +37,7 @@ class Plotting:
self.parent.plotting_bot, plot_h, has_min_max_lines=False)
ax.x = None
ax.plot([0], [0], linestyle="")
ax.chan_db_info = None
return ax
def plot_multi_color_dots(self, c_data, chan_db_info, chan_id,
......@@ -120,6 +121,7 @@ class Plotting:
ax.x = x
else:
ax.linkedX = x
ax.chan_db_info = chan_db_info
return ax
def plot_up_down_dots(self, c_data, chan_db_info, chan_id, ax, linked_ax):
......@@ -184,6 +186,7 @@ class Plotting:
ax.x = x
else:
ax.linkedX = x
ax.chan_db_info = chan_db_info
return ax
def plot_time_dots(self, c_data, chan_db_info, chan_id, ax, linked_ax):
......@@ -226,6 +229,7 @@ class Plotting:
ax.x_list = x_list
else:
ax.linkedX = x_list
ax.chan_db_info = chan_db_info
return ax
def plot_lines_dots(self, c_data, chan_db_info, chan_id,
......@@ -315,6 +319,7 @@ class Plotting:
else:
ax.linkedX = x_list
ax.linkedY = y_list
ax.chan_db_info = chan_db_info
return ax
def plot_lines_s_rate(self, c_data, chan_db_info, chan_id, ax, linked_ax):
......@@ -399,4 +404,5 @@ class Plotting:
zorder=constants.Z_ORDER['DOT'])
ax.x_list = x_list
ax.y_list = y_list
ax.chan_db_info = chan_db_info
return ax
......@@ -604,7 +604,8 @@ class PlottingWidget(QtWidgets.QScrollArea):
pass
if new_min_y is not None:
self.plotting_axes.set_axes_ylim(ax, new_min_y, new_max_y)
self.plotting_axes.set_axes_ylim(
ax, new_min_y, new_max_y, ax.chan_db_info)
def draw(self):
"""
......
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