specparam.plts.aperiodic.plot_aperiodic_fits¶
- specparam.plts.aperiodic.plot_aperiodic_fits(aps, freq_range, control_offset=False, average='mean', shade='sem', plot_individual=True, log_freqs=False, colors=None, labels=None, ax=None, **plot_kwargs)[source]¶
Plot reconstructions of model aperiodic fits.
- Parameters:
- aps2d array
Aperiodic parameters. Each row is a parameter set, as [Off, Exp] or [Off, Knee, Exp].
- freq_rangelist of [float, float]
The frequency range to plot the peak fits across, as [f_min, f_max].
- 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.
- control_offsetboolean, optional, default: False
Whether to control for the offset, by setting it to zero.
- log_freqsboolean, optional, default: False
Whether to plot the x-axis in log space.
- 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
.