This documentation is for development version 0.18.dev0.

mne.channels.Montage

class mne.channels.Montage(pos, ch_names, kind, selection, nasion=None, lpa=None, rpa=None)[source]

Montage for standard EEG electrode locations.

Warning

Montages should typically be loaded from a file using mne.channels.read_montage() instead of instantiating this class directly.

Parameters:
pos : array, shape (n_channels, 3)

The positions of the channels in 3d given in meters.

ch_names : list

The channel names.

kind : str

The type of montage (e.g. ‘standard_1005’).

selection : array of int

The indices of the selected channels in the montage file.

Notes

New in version 0.9.0.

Methods

__hash__($self, /) Return hash(self).
get_pos2d() Return positions converted to 2D.
plot([scale_factor, show_names, kind, show]) Plot a montage.
__hash__($self, /)

Return hash(self).

get_pos2d()[source]

Return positions converted to 2D.

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

Plot a montage.

Parameters:
scale_factor : float

Determines the size of the points.

show_names : bool

Whether to show the channel names.

kind : str

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

show : bool

Show figure if True.

Returns:
fig : instance of matplotlib.figure.Figure

The figure object.