Added essential if.
This commit is contained in:
parent
dd672c41b6
commit
72a7157538
@ -648,6 +648,9 @@ class ScatterPlotItem(GraphicsObject):
|
||||
d = d[mask]
|
||||
d2 = d2[mask]
|
||||
|
||||
if d.size == 0:
|
||||
return (None, None)
|
||||
|
||||
if frac >= 1.0:
|
||||
self.bounds[ax] = (np.nanmin(d) - self._maxSpotWidth*0.7072, np.nanmax(d) + self._maxSpotWidth*0.7072)
|
||||
return self.bounds[ax]
|
||||
|
Loading…
Reference in New Issue
Block a user