Merge pull request #1940 from pijyoi/fix_logmode

fix log mode by reverting to previous formulation
This commit is contained in:
Ogi Moore 2021-07-31 20:50:36 -07:00 committed by GitHub
commit 1ddbfc8321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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