chaosmagpy.plot_utils.plot_power_spectrum

chaosmagpy.plot_utils.plot_power_spectrum(spectrum, **kwargs)[source]

Plot spherical harmonic spectrum.

Parameters
spectrumndarray, shape (N,)

Spherical harmonics spectrum of degree N.

Returns
figmatplotlib.figure.Figure

Matplotlib figure.

axesmatplotlib.axes.Axes

A single axes instance.

Other Parameters
figsize2-tuple of floats

Figure dimension (width, height) in inches.

titleslist of strings

Subplot titles (defaults to empty strings).

ylabelstring

Label of the vertical axis (defaults to an empty string).

**kwargs

Keywords passed to matplotlib.pyplot.semilogy()