[bugfix] shift traces on wfPG plot
This commit is contained in:
parent
88bf4c8f67
commit
bf36e5e6a5
@ -524,12 +524,13 @@ class WaveformWidgetPG(QtGui.QWidget):
|
|||||||
try:
|
try:
|
||||||
self.plotWidget.getPlotItem().vb.setLimits(xMin=float(0),
|
self.plotWidget.getPlotItem().vb.setLimits(xMin=float(0),
|
||||||
xMax=float(self.wfend - self.wfstart),
|
xMax=float(self.wfend - self.wfstart),
|
||||||
yMin=-0.5,
|
yMin=.5,
|
||||||
yMax=len(nsc) + 0.5)
|
yMax=len(nsc) + .5)
|
||||||
except:
|
except:
|
||||||
print('Warning: Could not set zoom limits')
|
print('Warning: Could not set zoom limits')
|
||||||
|
|
||||||
for n, (network, station, channel) in enumerate(nsc):
|
for n, (network, station, channel) in enumerate(nsc):
|
||||||
|
n+=1
|
||||||
st = st_select.select(network=network, station=station, channel=channel)
|
st = st_select.select(network=network, station=station, channel=channel)
|
||||||
trace = st[0]
|
trace = st[0]
|
||||||
if mapping:
|
if mapping:
|
||||||
@ -554,7 +555,7 @@ class WaveformWidgetPG(QtGui.QWidget):
|
|||||||
self.xlabel = 'seconds since {0}'.format(self.wfstart)
|
self.xlabel = 'seconds since {0}'.format(self.wfstart)
|
||||||
self.ylabel = ''
|
self.ylabel = ''
|
||||||
self.setXLims([0, self.wfend - self.wfstart])
|
self.setXLims([0, self.wfend - self.wfstart])
|
||||||
self.setYLims([-0.5, nmax + 0.5])
|
self.setYLims([0.5, nmax + 0.5])
|
||||||
return plots
|
return plots
|
||||||
|
|
||||||
# def getAxes(self):
|
# def getAxes(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user