mne_denoise.viz.plot_component_time_series#
- mne_denoise.viz.plot_component_time_series(estimator, data=None, n_components=None, times=None, show=True, ax=None, fname=None)[source]#
Plot stacked component time series with fixed vertical offsets.
- 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 twenty components.
- timesarray-like of shape (n_times,) | None
Explicit time coordinates. If None, sample indices are used.
- showbool, default=True
If True, show the figure.
- axmatplotlib.axes.Axes | None
Optional target axes. If None, a new themed figure is created.
- fnamepath-like | None
Optional output path used to save the figure.
- Returns:
- figmatplotlib.figure.Figure
Figure handle.
- Raises:
- ValueError
If no components are selected or if
timeslength mismatches source length.