plot_subj¶
- plot_subj(inst: ~mne.io.base.BaseRaw | ~mne.epochs.BaseEpochs | ~mne.evoked.Evoked | ~mne._fiff.meas_info.Info | str, subj_dir: str | ~os.PathLike = None, picks: list[str | int] = None, no_wm: bool = False, labels_every: int | None = 8, surface: str = 'pial', hemi: str = 'both', fig: ~mne.viz._brain._brain.Brain = None, trans=None, color: <module 'matplotlib.colors' from '/home/docs/checkouts/readthedocs.org/user_builds/ieeg-pipelines/conda/latest/lib/python3.12/site-packages/matplotlib/colors.py'> = None, size: float = 0.35, show: bool = True, background: str = 'white', title: str = None, units: str = 'm', transparency: float = 0.5, cortex: str = 'low_contrast') Brain[source][source]¶
Plots the electrodes on the subject’s brain
- Parameters:
inst (
Signal | mne.Info | str) – The subject to plotsubj_dir (
PathLike, optional) – The subjects directory, by default HOME / ‘Box’ / ‘ECoG_Recon’picks (
list[str | int], optional) – The channels to plot, by default allno_wm (
bool, optional) – Whether to remove the white matter channels, by default Falselabels_every (
int, optional) – How often to label the channels, by default 8fig (
Brain, optional) – The figure to plot on, by default Nonesurface (
str, optional) – The surface to plot, by default ‘pial’hemi (
str, optional) – The hemisphere to plot, by default ‘split’trans (
mne.transforms.Transform, optional) – The transformation to apply, by default Nonecolor (
matplotlib.colors, optional) – The color of the electrodes, by default (1,1,1)size (
float, optional) – The size of the electrodes, by default 0.35show (
bool, optional) – Whether to show the figure, by default Truebackground (
str, optional) – Background colortitle (
string, optional) – Title the plotunits (
str, optional) – Units of the electrodestransparency (
float, optional) – Transparency of the braincortex (
str, optional) – The cortex to plot
- Returns:
The brain plot
- Return type:
Brain