analysis

plot.analysis

Functions

Name Description
plot_power_spectrum Plot a log-log power spectrum with shaded canonical EEG frequency bands.

plot_power_spectrum

plot.analysis.plot_power_spectrum(
    frequency,
    power,
    bands=None,
    colors=None,
    ax=None,
    label='simulation',
)

Plot a log-log power spectrum with shaded canonical EEG frequency bands.

Parameters

Name Type Description Default
frequency np.ndarray 1-D array of frequencies (Hz). required
power np.ndarray 1-D array of spectral powers, aligned with frequency. required
bands Optional[dict] Optional override of the band dict (defaults to δ/θ/α/β/γ). None
colors Any Optional override of the per-band background colors. None
ax Any Existing matplotlib.axes.Axes to draw into; required. None
label str Legend label for the spectrum trace. 'simulation'