fix log mode by reverting to previous formulation

this formulation is in the documentation for setLogMode()
This commit is contained in:
KIU Shueng Chuan 2021-08-01 10:45:29 +08:00
parent 6a59b7e5b5
commit aebc66dcaa

View File

@ -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):