normalize waveform data to avoid overlapping

This commit is contained in:
Sebastian Wehling-Benatelli 2015-02-18 15:32:37 +01:00
parent dd360bd9cc
commit 693362a278

View File

@ -104,7 +104,7 @@ class Data(object):
nsamp = len(trace.data) nsamp = len(trace.data)
tincr = trace.stats.delta tincr = trace.stats.delta
time_ax = np.arange(stime, nsamp / srate, tincr) 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') widget.axes.plot(time_ax, trace.data + n, 'k')
xlabel = 'seconds since {0}'.format(self.getCutTimes()[0]) xlabel = 'seconds since {0}'.format(self.getCutTimes()[0])
ylabel = '' ylabel = ''