[bugfix] newer version of pyqtgraph could not cope with UTCDatetime, now min/max_range for axes working
This commit is contained in:
parent
8e839df718
commit
01c556562e
@ -1 +1 @@
|
|||||||
b061-dirty
|
8e83-dirty
|
||||||
|
@ -488,8 +488,8 @@ class WaveformWidgetPG(QtGui.QWidget):
|
|||||||
plots = []
|
plots = []
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.plotWidget.getPlotItem().vb.setLimits(xMin=wfstart,
|
self.plotWidget.getPlotItem().vb.setLimits(xMin=float(0),
|
||||||
xMax=wfend,
|
xMax=float(wfend-wfstart),
|
||||||
yMin=-0.5,
|
yMin=-0.5,
|
||||||
yMax=len(nsc)+0.5)
|
yMax=len(nsc)+0.5)
|
||||||
except:
|
except:
|
||||||
@ -533,11 +533,11 @@ class WaveformWidgetPG(QtGui.QWidget):
|
|||||||
|
|
||||||
def setXLims(self, lims):
|
def setXLims(self, lims):
|
||||||
vb = self.plotWidget.getPlotItem().getViewBox()
|
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):
|
def setYLims(self, lims):
|
||||||
vb = self.plotWidget.getPlotItem().getViewBox()
|
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):
|
def setYTickLabels(self, pos, labels):
|
||||||
ticks = zip(pos, labels)
|
ticks = zip(pos, labels)
|
||||||
|
Loading…
Reference in New Issue
Block a user