mne.viz.plot_trans(info, trans='auto', subject=None, subjects_dir=None, ch_type=None, source=('bem', 'head'), coord_frame='head', meg_sensors=False, eeg_sensors=True, dig=False, ref_meg=False, verbose=None)

Plot MEG/EEG head surface and helmet in 3D.


info : dict

The measurement info.

trans : str | ‘auto’ | dict | None

The full path to the head<->MRI transform *-trans.fif file produced during coregistration. If trans is None, no head surface will be shown.

subject : str | None

The subject name corresponding to FreeSurfer environment variable SUBJECT.

subjects_dir : str

The path to the freesurfer subjects reconstructions. It corresponds to Freesurfer environment variable SUBJECTS_DIR.

ch_type : None | ‘eeg’ | ‘meg’

If None, both the MEG helmet and EEG electrodes will be shown. If ‘meg’, only the MEG helmet will be shown. If ‘eeg’, only the EEG electrodes will be shown.

source : str

Type to load. Common choices would be ‘bem’ or ‘head’. We first try loading ‘$SUBJECTS_DIR/$SUBJECT/bem/$SUBJECT-$SOURCE.fif’, and then look for ‘$SUBJECT*$SOURCE.fif’ in the same directory. Defaults to ‘bem’. Note. For single layer bems it is recommended to use ‘head’.

coord_frame : str

Coordinate frame to use, ‘head’, ‘meg’, or ‘mri’.

meg_sensors : bool

If True, plot MEG sensors as points in addition to showing the helmet.

eeg_sensors : bool

If True, plot EEG sensors as points.

dig : bool

If True, plot the digitization points.

ref_meg : bool

If True (default False), include reference MEG sensors.

verbose : bool, str, int, or None

If not None, override default verbose level (see mne.verbose).


fig : instance of mlab.Figure

The mayavi figure.