Commit 21449206 authored by Damien Naudet's avatar Damien Naudet
Browse files

Filtering out non finite values (None, nan, ...)

parent 1b92e4f7
......@@ -937,6 +937,12 @@ class XsocsPlot2D(PlotWindow):
# if values is not None and self.__values:
# raise ValueError('XsocsPlot2D only supports one 2D scatter plot.')
finite = np.isfinite(values)
x = x[finite]
y = y[finite]
values = values[finite]
if colormap is None:
colormap = XsocsPlot2DColormap(colormap=cm.jet,
minVal=None,
......
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