bionet.utils.plotting.plot_fourier

bionet.utils.plotting.plot_fourier(u, fs, fmin=0.0, fmax=None, style='line')

Plot the Discrete Fourier Transform of a signal.

Parameters:

u : ndarray of floats

Sampled signal.

fs : float

Sampling rate (Hz).

fmin : float

Minimum frequency to display (Hz).

fmax : float:

Maximum frequency to display (Hz).

style : {‘line’, ‘semilogy’, ‘stem’}

Set plot style.

Notes

This function may take a long time to run if the frequency range is very large.