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

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

parent 7fbffec8
No related branches found
No related tags found
1 merge request!156Fix bug that acquires attribute chan on ax on the non plotting area
......@@ -296,9 +296,9 @@ class PlottingWidget(QtWidgets.QScrollArea):
focus SOH tab, roll to the corresponding line.
"""
artist = event.artist
ax = artist.axes
chan_id = ax.chan
if isinstance(artist, pl.Line2D):
ax = artist.axes
chan_id = ax.chan
chan_data = self.plotting_data1[chan_id]
# list of x values of the plot
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