Merge pull request #179 from mrussell42/transform_fft_logscale
Log scale and fft transform fix
This commit is contained in:
commit
e7fbddcb3c
@ -523,6 +523,10 @@ class PlotDataItem(GraphicsObject):
|
||||
#y = y[::ds]
|
||||
if self.opts['fftMode']:
|
||||
x,y = self._fourierTransform(x, y)
|
||||
# Ignore the first bin for fft data if we have a logx scale
|
||||
if self.opts['logMode'][0]:
|
||||
x=x[1:]
|
||||
y=y[1:]
|
||||
if self.opts['logMode'][0]:
|
||||
x = np.log10(x)
|
||||
if self.opts['logMode'][1]:
|
||||
|
Loading…
Reference in New Issue
Block a user