mne_denoise.viz.plot_power_ratio_map#
- mne_denoise.viz.plot_power_ratio_map(inst_before, inst_after, info, vlim=(None, None), cmap='viridis', colorbar_label='Power Ratio (After / Before)', title='Power Ratio Map', show=True, ax=None, fname=None)[source]#
Plot a topomap of preserved power ratio after denoising.
- Parameters:
- inst_beforeMNE object | ndarray
Signal or per-channel variance before denoising. Accepted forms are 1D channel variances, 2D channel-by-time arrays, 3D epoch arrays, or MNE Raw/Epochs/Evoked objects.
- inst_afterMNE object | ndarray
Matching signal or per-channel variance after denoising.
- infomne.Info
Sensor metadata used by
mne.viz.plot_topomap.- vlimtuple[float | None, float | None]
Lower and upper limits passed to
mne.viz.plot_topomap.- cmapstr | matplotlib.colors.Colormap
Colormap passed to
mne.viz.plot_topomap.- colorbar_labelstr
Colorbar label.
- titlestr
Panel title.
- showbool
If True, display the figure.
- axmatplotlib.axes.Axes | None
Target axes. If None, create a new figure and axes.
- fnamepath-like | None
Optional output path used to save the figure.
- Returns:
- figmatplotlib.figure.Figure
Figure handle.
- Raises:
- ValueError
If
infois missing or if channel counts do not matchinfo.