fooof.plts.fg.plot_fg

fooof.plts.fg.plot_fg(fg, save_fig=False, file_name=None, file_path=None, **plot_kwargs)[source]

Plot a figure with subplots visualizing the parameters from a FOOOFGroup object.

Parameters
fgFOOOFGroup

Object containing results from fitting a group of power spectra.

save_figbool, optional, default: False

Whether to save out a copy of the plot.

file_namestr, optional

Name to give the saved out file.

file_pathPath or str, optional

Path to directory to save to. If None, saves to current directory.

**plot_kwargs

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

Raises
NoModelError

If the FOOOF object does not have model fit data available to plot.