From 693362a278f6d5f43a86d5db27470a27f8d5b714 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Wed, 18 Feb 2015 15:32:37 +0100 Subject: [PATCH] normalize waveform data to avoid overlapping --- pylot/core/read/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylot/core/read/data.py b/pylot/core/read/data.py index 3cdc5d67..52b9d9fe 100644 --- a/pylot/core/read/data.py +++ b/pylot/core/read/data.py @@ -104,7 +104,7 @@ class Data(object): nsamp = len(trace.data) tincr = trace.stats.delta time_ax = np.arange(stime, nsamp / srate, tincr) - trace.normalize() + trace.normalize(trace.data.max() * 2) widget.axes.plot(time_ax, trace.data + n, 'k') xlabel = 'seconds since {0}'.format(self.getCutTimes()[0]) ylabel = ''