mne_rt.viz.CompareEvoked#
- class mne_rt.viz.CompareEvoked(ch_names: list[str], sfreq: float, tmin: float, tmax: float, event_id: dict[str, int], channels: list[str] | None = None, info=None, montage: str = 'standard_1020', baseline: tuple | None = (None, 0), window_size: tuple[int, int] = (1200, 800), verbose: bool | str | None = None)[source]#
Bases:
_MockQMainWindowReal-time per-channel condition overlay with SEM shading and peak markers.
Shows N user-selected channels as large individual
pyqtgraph.PlotItemrows. Each plot overlays all conditions with solid curves, ±1 SEM shading, and a scatter point marking the peak latency in the post-stimulus window.Channels are chosen interactively via a clickable mini scalp-topomap in the sidebar: click any electrode dot to add or remove it from the display (up to
_MAX_DISP_CHchannels simultaneously).- Parameters:
- ch_names
listofstr Electrode names in data order.
- sfreq
float Sampling frequency in Hz.
- tmin
float Epoch start (s).
- tmax
float Epoch end (s).
- event_id
dict[str,int] Condition label → marker integer.
- channels
listofstrorNone Channels shown on startup. If
None, auto-selects from['Cz','Pz','Oz','Fz','FCz','CPz']or the first 3 channels.- info
mne.InfoorNone Used for unit/scale detection and scalp layout.
- montage
str, default"standard_1020" Fallback montage for electrode positions when info has no dig.
- baseline
tupleorNone, default(None, 0) Baseline correction interval (informational only).
- window_size
tupleofint, default(1200, 800) Initial window size in pixels.
- verbosebool,
str, orNone - .. versionadded:: 1.0.0
- ch_names
See also
mne_rt.RTEpochsDrives this plot via
update().
- __init__(ch_names: list[str], sfreq: float, tmin: float, tmax: float, event_id: dict[str, int], channels: list[str] | None = None, info=None, montage: str = 'standard_1020', baseline: tuple | None = (None, 0), window_size: tuple[int, int] = (1200, 800), verbose: bool | str | None = None) None[source]#
Methods
__init__(ch_names, sfreq, tmin, tmax, event_id)update(data, conditions)Redraw all channel plots with updated condition averages.