diff --git a/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py b/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py index 970ba1903f2ba734848ea36cd29d45c6b523006c..699eeccb5f5449a86124adb173288fd9fefc6766 100755 --- a/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py +++ b/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py @@ -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()