fooof.plts.plot_spectrum

fooof.plts.plot_spectrum(freqs, power_spectrum, log_freqs=False, log_powers=False, ax=None, plot_style=<function style_spectrum_plot at 0x7fd2f7300710>, **plot_kwargs)[source]

Plot a power spectrum.

Parameters
freqs1d array

Frequency values, to be plotted on the x-axis.

power_spectrum1d 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.

axmatplotlib.Axes, optional

Figure axis 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.