fix log mode by reverting to previous formulation
this formulation is in the documentation for setLogMode()
This commit is contained in:
parent
6a59b7e5b5
commit
aebc66dcaa
@ -701,7 +701,7 @@ class PlotDataItem(GraphicsObject):
|
|||||||
eps = np.finfo(y.dtype).eps
|
eps = np.finfo(y.dtype).eps
|
||||||
else:
|
else:
|
||||||
eps = 1
|
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']
|
ds = self.opts['downsample']
|
||||||
if not isinstance(ds, int):
|
if not isinstance(ds, int):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user