mne.channels.DigMontage

class mne.channels.DigMontage(dev_head_t=None, dig=None, ch_names=None)[source]

Montage for digitized electrode and headshape position data.

Warning

Montages are typically created using one of the helper functions in the See Also section below instead of instantiating this class directly.

Parameters
dev_head_tarray, shape (4, 4)

A Device-to-Head transformation matrix.

diglist of dict

The object containing all the dig points.

ch_nameslist of str

The names of the EEG channels.

Notes

New in version 0.9.0.

Methods

__add__(other)

Add two DigMontages.

__hash__(/)

Return hash(self).

copy()

Copy the DigMontage object.

plot([scale_factor, show_names, kind, show, …])

Plot a montage.

save(fname)

Save digitization points to FIF.

__add__(other)[source]

Add two DigMontages.

__hash__(/)

Return hash(self).

copy()[source]

Copy the DigMontage object.

Returns
diginstance of DigMontage

The copied DigMontage instance.

plot(scale_factor=20, show_names=True, kind='topomap', show=True, sphere=None)[source]

Plot a montage.

Parameters
scale_factorfloat

Determines the size of the points.

show_namesbool

Whether to show the channel names.

kindstr

Whether to plot the montage as ‘3d’ or ‘topomap’ (default).

showbool

Show figure if True.

spherefloat | array_like | str | None

The sphere parameters to use for the cartoon head. Can be array-like of shape (4,) to give the X/Y/Z origin and radius in meters, or a single float to give the radius (origin assumed 0, 0, 0). Can also be a spherical ConductorModel, which will use the origin and radius. Can be “auto” to use a digitization-based fit. Can also be None (default) to use ‘auto’ when enough extra digitization points are available, and 0.095 otherwise. Currently the head radius does not affect plotting.

New in version 0.20.

verbosebool, str, int, or None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more).

Returns
figinstance of matplotlib.figure.Figure

The figure object.

Examples using plot:

save(fname)[source]

Save digitization points to FIF.

Parameters
fnamestr

The filename to use. Should end in .fif or .fif.gz.

Examples using save: