From bf36e5e6a57d9d2c2d64682ce6d417685d2ce508 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 5 Sep 2017 15:31:02 +0200 Subject: [PATCH] [bugfix] shift traces on wfPG plot --- pylot/core/util/widgets.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index b764c9d0..e038bb3c 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -524,12 +524,13 @@ class WaveformWidgetPG(QtGui.QWidget): try: self.plotWidget.getPlotItem().vb.setLimits(xMin=float(0), xMax=float(self.wfend - self.wfstart), - yMin=-0.5, - yMax=len(nsc) + 0.5) + yMin=.5, + yMax=len(nsc) + .5) except: print('Warning: Could not set zoom limits') for n, (network, station, channel) in enumerate(nsc): + n+=1 st = st_select.select(network=network, station=station, channel=channel) trace = st[0] if mapping: @@ -554,7 +555,7 @@ class WaveformWidgetPG(QtGui.QWidget): self.xlabel = 'seconds since {0}'.format(self.wfstart) self.ylabel = '' self.setXLims([0, self.wfend - self.wfstart]) - self.setYLims([-0.5, nmax + 0.5]) + self.setYLims([0.5, nmax + 0.5]) return plots # def getAxes(self):