mne_denoise.viz.plot_channel_time_course_comparison#

mne_denoise.viz.plot_channel_time_course_comparison(inst_before, inst_after, picks, times, start=0, stop=None, before_label='Before', after_label='After', x_label='Time', show=True, fname=None)[source]#

Plot before/after channel time courses for explicit channel picks.

Parameters:
inst_beforeMNE object | ndarray

Signal before denoising with shape (n_channels, n_times) or (n_epochs, n_channels, n_times).

inst_afterMNE object | ndarray

Signal after denoising with the same channel and time dimensions.

pickssequence of int | sequence of str

Channels to display. String picks require MNE inputs with ch_names.

startint, default=0

First sample index to display after resolving times.

stopint | None, default=None

Exclusive final sample index to display after resolving times.

timesarray-like of shape (n_times,)

Explicit time axis.

before_labelstr

Legend label for the first input.

after_labelstr

Legend label for the second input.

x_labelstr

X-axis label.

showbool

If True, display the figure.

fnamepath-like | None

Optional output path used to save the figure.

Returns:
figmatplotlib.figure.Figure

Figure handle.

Raises:
ValueError

If shapes are invalid or inconsistent, picks are invalid, or times length does not match n_times.