From d1cb6fe41f9d09bb2e641923550b2a7f18730404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Wed, 26 Apr 2017 15:59:29 +0200 Subject: [PATCH] Detrend of waveforms for overview plot. --- pylot/core/util/widgets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 8ad102df..028d70bc 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -446,6 +446,7 @@ class WaveformWidget(FigureCanvas): stime = trace.stats.starttime - wfstart time_ax = prepTimeAxis(stime, trace) if not scaleddata: + trace.detrend('constant') trace.normalize(np.max(np.abs(trace.data)) * 2) self.getAxes().plot(time_ax, trace.data + n, 'k') if noiselevel is not None: