fooof.plts.plot_spectra¶
- fooof.plts.plot_spectra(freqs, power_spectra, log_freqs=False, log_powers=False, colors=None, labels=None, ax=None, **plot_kwargs)[source]¶
Plot one or multiple power spectra.
- Parameters
- freqs1d or 2d array or list of 1d array
Frequency values, to be plotted on the x-axis.
- power_spectra1d or 2d array or list of 1d array
Power values, to be plotted on the y-axis.
- log_freqsbool, optional, default: False
Whether to plot the frequency axis in log spacing.
- log_powersbool, optional, default: False
Whether to plot the power axis in log spacing.
- colorslist of str, optional, default: None
Line colors of the spectra.
- labelslist of str, optional, default: None
Legend labels for the spectra.
- axmatplotlib.Axes, optional
Figure axes upon which to plot.
- **plot_kwargs
Keyword arguments to pass into the
style_plot
.