mne.channels.Layout

class mne.channels.Layout(box, pos, names, ids, kind)[source]

Sensor layouts.

Layouts are typically loaded from a file using read_layout. Only use this class directly if you’re constructing a new layout.

Parameters
boxtuple of length 4

The box dimension (x_min, x_max, y_min, y_max).

posarray, shape=(n_channels, 4)

The positions of the channels in 2d (x, y, width, height).

nameslist

The channel names.

idslist

The channel ids.

kindstr

The type of Layout (e.g. ‘Vectorview-all’).

Methods

__hash__(/)

Return hash(self).

plot([picks, show])

Plot the sensor positions.

save(fname)

Save Layout to disk.

plot(picks=None, show=True)[source]

Plot the sensor positions.

Parameters
pickslist | slice | None

Channels to include. Slices and lists of integers will be interpreted as channel indices. None (default) will pick all channels. Note that channels in info['bads'] will be included if their indices are explicitly provided.

showbool

Show figure if True. Defaults to True.

Returns
figinstance of matplotlib.figure.Figure

Figure containing the sensor topography.

Notes

New in version 0.12.0.

Examples using plot:

save(fname)[source]

Save Layout to disk.

Parameters
fnamestr

The file name (e.g. ‘my_layout.lout’).

See also

read_layout

Examples using save:

Examples using mne.channels.Layout