Merge pull request #179 from mrussell42/transform_fft_logscale

Log scale and fft transform fix
This commit is contained in:
Luke Campagnola 2015-07-12 14:33:29 -05:00
commit e7fbddcb3c

View File

@ -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]: