plot_spectrum#
- pypillometry.signal.plot_spectrum(sp, ax=None, per_decade=20, scale='loglog', **kwargs)[source]#
Plot one or several spectra.
- Parameters:
sp (Spectrum or dict of Spectrum) – result(s) of
spectrum(); the keys of a dict are the labelsax (matplotlib Axes, optional) – axes to draw on; default: a new figure
per_decade (int or None, optional) – average the power in this many log-spaced bands per decade (see
Spectrum.at_log_freqs(); default 20); None: all frequenciesscale ({"loglog", "logy", "linear"}, optional) – axis scaling; default “loglog” (power laws are straight lines)
**kwargs – passed to
ax.plot
- Return type: