How to plot the frequency spectrum with scipy

from numpy import sin, linspace, pi. from pylab import plot, show, title, xlabel, ylabel, subplot. from scipy import fft, arange. ... Undoes fftshift, shifts zero-frequency terms to beginning of array. Notes. See numpy.fft for definitions and conventions used. Zero-padding, analogously with ifft, is performed by appending zeros to the input ... ................
................