mne_denoise.viz.plot_asr_component_reconstruction#

mne_denoise.viz.plot_asr_component_reconstruction(estimator, *, title: str | None = None, ax=None, show: bool = True, fname: str | None = None)[source]#

Heatmap of per-window component variance relative to rejection thresholds.

Parameters:
estimatorASR | AdaptiveASR | JugglerASR

A fitted estimator that has been used to transform data, so that diagnostics_ is populated.

titlestr | None, default=None

Custom title for the plot. If None, uses a sensible default.

axmatplotlib.axes.Axes | None, default=None

Axes to plot into. If None, a new themed figure is created.

showbool, default=True

Whether to call plt.show() after plotting.

fnamestr | None, default=None

If provided, the figure is saved to this file path.

Returns:
figmatplotlib.figure.Figure

The figure containing the plot.

axmatplotlib.axes.Axes

The axes with the heatmap.

Raises:
ValueError

If the estimator has no transform diagnostics or if diagnostics lack per-window component_variances.