[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 = [] | ||||
| 
 | ||||
|         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) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user