Merge pull request #1364 from meganbkratz/logScaleBugFix

fix for log scaling being broken
This commit is contained in:
Kenneth Lyons 2020-09-16 22:27:04 -07:00 committed by GitHub
commit f1d0ea99b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -543,11 +543,6 @@ class PlotDataItem(GraphicsObject):
if self.opts['logMode'][0]:
x=x[1:]
y=y[1:]
else:
if self.opts['logMode'][0]:
x = np.log10(x)
if self.opts['logMode'][1]:
y = np.log10(y)
if self.opts['derivativeMode']: # plot dV/dt
y = np.diff(self.yData)/np.diff(self.xData)
x = x[:-1]