bugfix: PlotDataItem now checks for inf as well as nan in data.
This commit is contained in:
parent
edb7c514a2
commit
b09862d2c1
@ -389,7 +389,7 @@ class PlotDataItem(GraphicsObject):
|
||||
if self.xData is None:
|
||||
return (None, None)
|
||||
if self.xDisp is None:
|
||||
nanMask = np.isnan(self.xData) | np.isnan(self.yData)
|
||||
nanMask = np.isnan(self.xData) | np.isnan(self.yData) | np.isinf(self.xData) | np.isinf(self.yData)
|
||||
if any(nanMask):
|
||||
x = self.xData[~nanMask]
|
||||
y = self.yData[~nanMask]
|
||||
|
Loading…
Reference in New Issue
Block a user