Visualization#
Note
Visualization helpers require the optional viz dependency:
pip install "mne-denoise[viz]".
All names below are available from the public mne_denoise.viz facade.
ASR diagnostics#
Plot the per-window count of reconstructed components over time. |
|
Bar chart of the clean calibration fraction for one or more estimators. |
|
Heatmap of per-window component variance relative to rejection thresholds. |
|
Plot experimental GuidedASR soft weights by window and component. |
Component diagnostics#
Plot a compact per-component summary dashboard. |
|
Plot spatial component patterns. |
|
Plot a 1D component score curve for a fitted estimator. |
|
Plot component activity as an epoch-by-time image. |
|
Plot stacked component time series with fixed vertical offsets. |
|
Plot a time-frequency power view for one component. |
|
Plot per-window score traces from a 2D score matrix. |
Signal comparisons#
Plot before/after channel time courses for explicit channel picks. |
|
Plot GFP comparison for before/after signals. |
|
Plot a topomap of preserved power ratio after denoising. |
|
Overlay one before/after trace to inspect reconstruction quality. |
|
Plot group-mean evoked responses with optional SEM bands. |
Spectral and time-frequency plots#
Plot score/eigenvalue profiles from a narrowband scan. |
|
Visualize a time-frequency mask matrix. |
|
Plot full-spectrum and zoomed PSD panels across multiple series. |
|
Plot PSD comparison for original and denoised data. |
|
Plot full-spectrum and focused PSD overlays across multiple series. |
|
Plot a PSD comparison plus zoomed panels around selected frequencies. |
|
Compare before/after spectrograms averaged across selected channels. |
|
Plot input PSD next to PSDs of selected components. |
Statistical summaries#
Plot grouped bar charts for one or more scalar metrics. |
|
Plot a grouped x/y trade-off scatter with optional group means. |
|
Plot one metric as grouped bars or paired subject trajectories. |
|
Plot grouped per-harmonic attenuation bars for line-noise studies. |
|
Plot subject-level paired trajectories for one or more metrics. |
|
Plot violin + strip distributions with optional paired subject lines. |
|
Plot a null-distribution histogram with observed statistic and CI. |
|
Plot per-subject point estimates with confidence intervals. |
|
Plot a per-window count or metric series. |
Summary figures#
Plot a generic denoising diagnostics dashboard. |
|
Plot a generic component-cleaning dashboard. |
|
Plot grouped time-domain signal diagnostics. |
|
Plot condition-by-group interaction traces. |
|
Plot group-wise condition interaction traces. |
|
Plot a generic endpoint-metric storyboard. |
|
Plot a two-panel metric trade-off summary. |
Interactive component selection#
Selection controller returned by |
Plot an interactive component selector for DSS or standard ZapLine. |
Theme helpers#
Return a color from the shared viz palettes by key. |
|
Return a color from the shared spectral series palette. |
|
Apply per-axes theme overrides. |
|
Create a figure + axes with the package plotting defaults. |
|
Add a clean, minimal legend. |
|
Return the theme rcParams, optionally merged with overrides. |
|
Context manager that temporarily applies the mne-denoise theme. |
|
Apply the mne-denoise plotting theme to matplotlib rcParams. |