fix for log scaling being broken -- log was being taken twice, resulting in nan. Now it's only being taken once

This commit is contained in:
Megan Kratz 2020-09-10 19:20:12 -04:00
parent 9fdaffaf7d
commit 46f8f1633f

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]