fooof.plts.plot_spectra¶
-
fooof.plts.
plot_spectra
(freqs, power_spectra, log_freqs=False, log_powers=False, labels=None, ax=None, plot_style=<function style_spectrum_plot at 0x7fd2f7300710>, **plot_kwargs)[source]¶ Plot multiple power spectra on the same plot.
- Parameters
- freqs2d array or 1d array or list of 1d array
Frequency values, to be plotted on the x-axis.
- power_spectra2d 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.
- labelslist of str, optional
Legend labels, for each power spectrum.
- axmatplotlib.Axes, optional
Figure axes upon which to plot.
- plot_stylecallable, optional, default: style_spectrum_plot
A function to call to apply styling & aesthetics to the plot.
- **plot_kwargs
Keyword arguments to be passed to the plot call.