mne_denoise.viz.plot_evoked_gfp_comparison#
- mne_denoise.viz.plot_evoked_gfp_comparison(inst_before, inst_after, times, ci=0.95, n_boot=1000, colors=('#333333', '#009E73'), linestyles=('-', '-'), labels=('Before', 'After'), x_label='Time', y_label='Global Field Power', title='Evoked GFP Comparison', show=True, ax=None, fname=None)[source]#
Plot GFP comparison for before/after signals.
- Parameters:
- inst_beforeMNE object | ndarray
Signal before denoising. Supported array shapes are
(n_channels, n_times)and(n_epochs, n_channels, n_times).- inst_afterMNE object | ndarray
Signal after denoising, with the same channel and time dimensions as
inst_before.- timesarray-like of shape (n_times,)
Explicit time axis.
- cifloat | None
Confidence level for bootstrap bands. If None, no interval is drawn. Bootstrap intervals are only computed for 3D epoched inputs.
- n_bootint
Number of bootstrap resamples when
ciis not None.- colorstuple[str, str]
Colors for before/after curves.
- linestylestuple[str, str]
Linestyles for before/after curves.
- labelstuple[str, str]
Legend labels for before/after curves.
- x_labelstr
X-axis label.
- y_labelstr
Y-axis 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 input shapes are invalid, if time lengths differ between inputs, or if
timeslength does not matchn_times.