added scroll functionality when mouse inside dataPlot canvas

This commit is contained in:
2017-05-22 10:53:20 +02:00
parent a3fbeafeac
commit ba56bfbd25
3 changed files with 25 additions and 4 deletions

View File

@@ -1 +1 @@
2a05-dirty
a3fbe-dirty

View File

@@ -439,6 +439,7 @@ class WaveformWidget(FigureCanvas):
nmax = 0
for n, trace in enumerate(wfdata):
channel = trace.stats.channel
network = trace.stats.network
station = trace.stats.station
if mapping:
comp = channel[-1]
@@ -458,7 +459,7 @@ class WaveformWidget(FigureCanvas):
for level in noiselevel:
self.getAxes().plot([time_ax[0], time_ax[-1]],
[level, level], '--k')
self.setPlotDict(n, (station, channel))
self.setPlotDict(n, (station, channel, network))
xlabel = 'seconds since {0}'.format(wfstart)
ylabel = ''
self.updateWidget(xlabel, ylabel, title)