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.

Examples using fooof.plts.plot_spectra

Dealing with Line Noise

Dealing with Line Noise

Plot Power Spectra

Plot Power Spectra

Simulation Parameters

Simulation Parameters

Simulating Neural Power Spectra

Simulating Neural Power Spectra

Transforming Power Spectra

Transforming Power Spectra

Developmental Data Demo

Developmental Data Demo

Topographical Analyses with MNE

Topographical Analyses with MNE

01: Model Description

01: Model Description

03: Fitting Algorithm

03: Fitting Algorithm