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

Merge branch 'i119_bug_ax_no_chan_on_pick_event' into 'master'

Fix bug that acquires attribute chan on ax on the non plotting area

Closes #119

See merge request !156
parents 7fbffec8 2d2affd9
1 merge request!156Fix bug that acquires attribute chan on ax on the non plotting area
Pipeline #2868 passed with stage
in 3 minutes and 22 seconds
...@@ -296,9 +296,9 @@ class PlottingWidget(QtWidgets.QScrollArea): ...@@ -296,9 +296,9 @@ class PlottingWidget(QtWidgets.QScrollArea):
focus SOH tab, roll to the corresponding line. focus SOH tab, roll to the corresponding line.
""" """
artist = event.artist artist = event.artist
ax = artist.axes
chan_id = ax.chan
if isinstance(artist, pl.Line2D): if isinstance(artist, pl.Line2D):
ax = artist.axes
chan_id = ax.chan
chan_data = self.plotting_data1[chan_id] chan_data = self.plotting_data1[chan_id]
# list of x values of the plot # list of x values of the plot
x_list = artist.get_xdata() x_list = artist.get_xdata()
......
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