chaosmagpy.plot_utils.plot_power_spectrum¶
- chaosmagpy.plot_utils.plot_power_spectrum(spectrum, **kwargs)[source]¶
Plot the spherical harmonic spectrum.
- Parameters:
- spectrumndarray, shape (N,)
Spherical harmonics spectrum of degree N.
- 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()
Notes
You may need to call matplotlib
plt.show()to actually show the plot. For more customization get access to the figure and axes handles through matplotlib by usingfig = plt.gcf()andaxes = fig.axesright after the call to this plotting method.