mne_denoise.viz.plot_asr_repair_timeline#

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

Plot the per-window count of reconstructed components over time.

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, an auto-generated title showing the percentage of modified windows is used.

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 repair timeline.

Raises:
ValueError

If the estimator has no transform diagnostics or if diagnostics contain no processing windows.