diff --git a/pyqtgraph/graphicsItems/PlotDataItem.py b/pyqtgraph/graphicsItems/PlotDataItem.py index 97c8cb55..0c6b68a8 100644 --- a/pyqtgraph/graphicsItems/PlotDataItem.py +++ b/pyqtgraph/graphicsItems/PlotDataItem.py @@ -701,7 +701,7 @@ class PlotDataItem(GraphicsObject): eps = np.finfo(y.dtype).eps else: eps = 1 - y = np.copysign(np.log10(np.abs(y)+eps), y) + y = np.sign(y) * np.log10(np.abs(y)+eps) ds = self.opts['downsample'] if not isinstance(ds, int):