diff --git a/src/silx/gui/plot/items/core.py b/src/silx/gui/plot/items/core.py index 5dd818b539..1e76ddddbc 100644 --- a/src/silx/gui/plot/items/core.py +++ b/src/silx/gui/plot/items/core.py @@ -1555,11 +1555,11 @@ def _filterData(self, xPositive, yPositive): y = numpy.array(y, copy=True, dtype=numpy.float64) y[clipped] = numpy.nan - if xPositive and xerror is not None: - xerror = self._logFilterError(x, xerror) + if xPositive and xerror is not None: + xerror = self._logFilterError(x, xerror) - if yPositive and yerror is not None: - yerror = self._logFilterError(y, yerror) + if yPositive and yerror is not None: + yerror = self._logFilterError(y, yerror) return x, y, xerror, yerror