 
    
  
      
    Axes.magnitude_spectrum(x, Fs=None, Fc=None, window=None, pad_to=None, sides=None, scale=None, **kwargs)¶Plot the magnitude spectrum.
Call signature:
magnitude_spectrum(x, Fs=2, Fc=0,  window=mlab.window_hanning,
                   pad_to=None, sides='default', **kwargs)
Compute the magnitude spectrum of x. Data is padded to a length of pad_to and the windowing function window is applied to the signal.
| Parameters: | x : 1-D array or sequence 
 Fs : scalar 
 window : callable or ndarray 
 sides : [ ‘default’ | ‘onesided’ | ‘twosided’ ] 
 pad_to : integer 
 scale : [ ‘default’ | ‘linear’ | ‘dB’ ] 
 Fc : integer 
 **kwargs : 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns: | spectrum : 1-D array 
 freqs : 1-D array 
 line : a  
 | 
See also
psd()psd() plots the power spectral density.`.angle_spectrum()angle_spectrum() plots the angles of the corresponding frequencies.phase_spectrum()phase_spectrum() plots the phase (unwrapped angle) of the corresponding frequencies.specgram()specgram() can plot the magnitude spectrum of segments within the signal in a colormap.Examples
(Source code, png, pdf)
