Merge pull request #1249 from j9ac9k/Implement-160

Implement PR160 - clear current SpotItems
This commit is contained in:
Ogi Moore 2020-06-11 23:18:39 -07:00 committed by GitHub
commit 158efcf65c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)