[bugfix] newer version of pyqtgraph could not cope with UTCDatetime, now min/max_range for axes working

This commit is contained in:
marcel 2017-06-09 13:51:20 +02:00
parent 8e839df718
commit 01c556562e
2 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
b061-dirty
8e83-dirty

View File

@ -488,8 +488,8 @@ class WaveformWidgetPG(QtGui.QWidget):
plots = []
try:
self.plotWidget.getPlotItem().vb.setLimits(xMin=wfstart,
xMax=wfend,
self.plotWidget.getPlotItem().vb.setLimits(xMin=float(0),
xMax=float(wfend-wfstart),
yMin=-0.5,
yMax=len(nsc)+0.5)
except:
@ -533,11 +533,11 @@ class WaveformWidgetPG(QtGui.QWidget):
def setXLims(self, lims):
vb = self.plotWidget.getPlotItem().getViewBox()
vb.setXRange(lims[0], lims[1], padding=0)
vb.setXRange(float(lims[0]), float(lims[1]), padding=0)
def setYLims(self, lims):
vb = self.plotWidget.getPlotItem().getViewBox()
vb.setYRange(lims[0], lims[1], padding=0)
vb.setYRange(float(lims[0]), float(lims[1]), padding=0)
def setYTickLabels(self, pos, labels):
ticks = zip(pos, labels)