transfreq.viz
.plot_psds¶
- transfreq.viz.plot_psds(psds, freqs, average=True, showfig=True, ax=None)¶
Plot normalised power spectrum
- Parameters:
- psds: array, shape (N_sensors, N_freqs)
power spectral matrix
- freqs: array, shape (N_freqs,)
frequncies at which the psds is computed
- average: bool (default True)
if True the power spectrum is averaged over the channels. If False the power spectrum of each channel is dislayed
- 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 rest and task power spectra profiles and the transition frequencycomputed with Klimesch’s method