Commit b09862d2 authored by Luke Campagnola's avatar Luke Campagnola
Browse files

bugfix: PlotDataItem now checks for inf as well as nan in data.

parent edb7c514
......@@ -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]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment