Detrend of waveforms for overview plot.

This commit is contained in:
Ludger Küperkoch 2017-04-26 15:59:29 +02:00
parent 686ca4489c
commit d1cb6fe41f

View File

@ -446,6 +446,7 @@ class WaveformWidget(FigureCanvas):
stime = trace.stats.starttime - wfstart stime = trace.stats.starttime - wfstart
time_ax = prepTimeAxis(stime, trace) time_ax = prepTimeAxis(stime, trace)
if not scaleddata: if not scaleddata:
trace.detrend('constant')
trace.normalize(np.max(np.abs(trace.data)) * 2) trace.normalize(np.max(np.abs(trace.data)) * 2)
self.getAxes().plot(time_ax, trace.data + n, 'k') self.getAxes().plot(time_ax, trace.data + n, 'k')
if noiselevel is not None: if noiselevel is not None: