mne_denoise.viz.plot_component_score_curve#
- mne_denoise.viz.plot_component_score_curve(estimator, mode='raw', ax=None, show=True, fname=None)[source]#
Plot a 1D component score curve for a fitted estimator.
- Parameters:
- estimatorobject
Fitted estimator exposing
eigenvalues_orscores_.- mode{‘raw’, ‘cumulative’, ‘ratio’}
Score display mode:
'raw': raw score/eigenvalue per component.'cumulative': normalized cumulative sum.'ratio': same values as'raw'but labeled as a ratio view.
- axmatplotlib.axes.Axes | None
Target axes. If None, a new themed figure is created.
- 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
modeis invalid, or if scores are missing/invalid.