specparam.plts.periodic.plot_peak_fits

specparam.plts.periodic.plot_peak_fits(peaks, freq_range=None, average='mean', shade='sem', plot_individual=True, colors=None, labels=None, ax=None, **plot_kwargs)[source]

Plot reconstructions of model peak fits.

Parameters:
peaks2d array

Peak data. Each row is a peak, as [CF, PW, BW].

freq_rangelist of [float, float] , optional

The frequency range to plot the peak fits across, as [f_min, f_max]. If not provided, defaults to +/- 4 around given peak center frequencies.

average{‘mean’, ‘median’}, optional, default: ‘mean’

Approach to take to average across components. If set to None, no average is plotted.

shade{‘sem’, ‘std’}, optional, default: ‘sem’

Approach for shading above/below the average reconstruction If set to None, no yshade is plotted.

plot_individualbool, optional, default: True

Whether to plot individual component reconstructions. If False, only the average component reconstruction is plotted.

colorsstr or list of str, optional

Color(s) to plot data.

labelslist of str, optional

Label(s) for plotted data, to be added in a legend.

axmatplotlib.Axes, optional

Figure axes upon which to plot.

**plot_kwargs

Additional plot related keyword arguments, with styling options managed by style_plot.

Examples using specparam.plts.periodic.plot_peak_fits

Plot Model Components

Plot Model Components

Developmental Data Demo

Developmental Data Demo