Fix: Update axes after data is set
This commit is contained in:
parent
88931bc4a5
commit
71636e3518
@ -365,11 +365,12 @@ class PlotCurveItem(GraphicsObject):
|
|||||||
|
|
||||||
#self.setCacheMode(QtGui.QGraphicsItem.NoCache) ## Disabling and re-enabling the cache works around a bug in Qt 4.6 causing the cached results to display incorrectly
|
#self.setCacheMode(QtGui.QGraphicsItem.NoCache) ## Disabling and re-enabling the cache works around a bug in Qt 4.6 causing the cached results to display incorrectly
|
||||||
## Test this bug with test_PlotWidget and zoom in on the animated plot
|
## Test this bug with test_PlotWidget and zoom in on the animated plot
|
||||||
|
self.yData = kargs['y'].view(np.ndarray)
|
||||||
|
self.xData = kargs['x'].view(np.ndarray)
|
||||||
|
|
||||||
self.invalidateBounds()
|
self.invalidateBounds()
|
||||||
self.prepareGeometryChange()
|
self.prepareGeometryChange()
|
||||||
self.informViewBoundsChanged()
|
self.informViewBoundsChanged()
|
||||||
self.yData = kargs['y'].view(np.ndarray)
|
|
||||||
self.xData = kargs['x'].view(np.ndarray)
|
|
||||||
|
|
||||||
profiler('copy')
|
profiler('copy')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user