bugfix: ScatterPlotItem generates any uncached spot items when calling points()
This commit is contained in:
parent
b09862d2c1
commit
62cdaf0b46
@ -488,9 +488,13 @@ class ScatterPlotItem(GraphicsObject):
|
||||
#self.sigPointClicked.emit(self, point)
|
||||
|
||||
def points(self):
|
||||
if not self.spotsValid:
|
||||
self.generateSpots()
|
||||
return self.spots[:]
|
||||
|
||||
def pointsAt(self, pos):
|
||||
if not self.spotsValid:
|
||||
self.generateSpots()
|
||||
x = pos.x()
|
||||
y = pos.y()
|
||||
pw = self.pixelWidth()
|
||||
|
Loading…
Reference in New Issue
Block a user