mne_denoise.viz.plot_component_epochs_image#
- mne_denoise.viz.plot_component_epochs_image(estimator, data=None, n_components=None, show=True, fname=None)[source]#
Plot component activity as an epoch-by-time image.
- Parameters:
- estimatorobject
Fitted estimator exposing component sources via cache or transform.
- datamne.io.BaseRaw | mne.BaseEpochs | ndarray | None
Input data used to compute sources when they are not cached.
- n_componentsint | sequence of int | None
Components to plot. If None, plot up to five components.
- showbool, default=True
If True, show the figure.
- fnamepath-like | None
Optional output path used to save the figure.
- Returns:
- figmatplotlib.figure.Figure
Figure handle.
- Raises:
- ValueError
If sources are not 2D/3D, or if no components are selected.