fooof.plts.utils.check_ax

fooof.plts.utils.check_ax(ax, figsize=None)[source]

Check whether a figure axes object is defined, and define if not.

Parameters
axmatplotlib.Axes or None

Object to check if is already an axes object.

figsizetuple of float, optional

Size to create the figure, if not already created.

Returns
axmatplotlib.Axes

Figure axes object to use.