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:
parent
9fdaffaf7d
commit
46f8f1633f
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user