transfreq.viz.plot_transfreq

transfreq.viz.plot_transfreq(psds, freqs, tfbox, showfig=True, ax=None)

Plot alpha and theta power spectra profiles and the transition frequency

Parameters:
psds: array, shape (N_sensors, N_freqs)

power spectral matrix

freqs: array, shape (N_freqs,)

frequncies at which the psds is computed

tfbox: dictionary

output of either create_cluster, compute_transfreq_manual or compute_transfreq

showfig: bool (default True)

if True figure will be showed, if False figure will not be showed

ax: instance of Axes | None

Axes to plot into. If None, axes will be created.

Returns:
fig: instance of Figure

Figure representing alpha and theta power spectra profiles and the transition frequency