numpy.fft.fftshift

numpy.fft.fftshift(x, axes=None)

Shift zero-frequency component to center of spectrum.

This function swaps half-spaces for all axes listed (defaults to all). If len(x) is even then the Nyquist component is y[0].

Parameters:

x : array_like

Input array.

axes : int or shape tuple, optional

Axes over which to shift. Default is None which shifts all axes.

See also

ifftshift

Previous topic

numpy.fft.fftfreq

Next topic

numpy.fft.ifftshift

This Page

Quick search