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:

box : tuple of length 4

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

pos : array, shape=(n_channels, 4)

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

names : list

The channel names.

ids : list

The channel ids.

kind : str

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

Methods

__hash__() <==> hash(x)
plot([show]) Plot the sensor positions.
save(fname) Save Layout to disk.
__hash__() <==> hash(x)
plot(show=True)[source]

Plot the sensor positions.

Parameters:

show : bool

Show figure if True. Defaults to True.

Returns:

fig : instance of matplotlib figure

Figure containing the sensor topography.

Notes

New in version 0.12.0.

save(fname)[source]

Save Layout to disk.

Parameters:

fname : str

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

See also

read_layout