Implement PR160 - clear current SpotItems
This commit is contained in:
parent
4b484ae46d
commit
001d91c2f2
|
@ -379,6 +379,9 @@ class ScatterPlotItem(GraphicsObject):
|
|||
kargs['y'] = []
|
||||
numPts = 0
|
||||
|
||||
## Clear current SpotItems since the data references they contain will no longer be current
|
||||
self.data['item'][...] = None
|
||||
|
||||
## Extend record array
|
||||
oldData = self.data
|
||||
self.data = np.empty(len(oldData)+numPts, dtype=self.data.dtype)
|
||||
|
|
Loading…
Reference in New Issue
Block a user