mne_rt.viz.TopoPlot#
- class mne_rt.viz.TopoPlot(ch_names: list[str], sfreq: float, tmin: float, tmax: float, event_id: dict[str, int], info=None, montage: str = 'standard_1020', baseline: tuple | None = (None, 0), window_size: tuple[int, int] = (1440, 900), verbose: bool | str | None = None)[source]#
Bases:
_MockQMainWindowReal-time scalp-layout ERP display.
One mini
pyqtgraph.PlotItemper electrode, placed at the channel’s true 2-D scalp position frommne.channels.find_layout(). Condition averages (with optional ±1 SEM shading) are redrawn after everyupdate()call.- 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.
- info
mne.InfoorNone When provided,
mne.channels.find_layout()is called on this object for exact scalp positioning and channel-type detection (EEG → µV, MEG mag → fT, MEG grad → fT/cm). Passepochs_stream.infofromRTEpochs.- montage
str, default “standard_1020” Fallback montage when
infois not given or has no dig points.- baseline
tupleorNone, default (None, 0) Baseline interval — drawn as a shaded region.
- window_size
tupleofint, default (1440, 900) Initial window size in pixels.
- verbosebool or
strorNone - .. versionadded:: 1.0.0
- ch_names
See also
mne_rt.RTEpochsDrives this plot via
update().mne_rt.viz.ButterflyPlotAll-channel overlay alternative.
mne_rt.viz.CompareEvokedLarge per-channel view with SEM ribbons.
- __init__(ch_names: list[str], sfreq: float, tmin: float, tmax: float, event_id: dict[str, int], info=None, montage: str = 'standard_1020', baseline: tuple | None = (None, 0), window_size: tuple[int, int] = (1440, 900), verbose: bool | str | None = None) None[source]#
Methods
__init__(ch_names, sfreq, tmin, tmax, event_id)resizeEvent(event)showEvent(event)update(data, conditions)Redraw all channel plots with updated condition averages.