- mne.viz.plot_sensors(info, kind='topomap', ch_type=None, title=None, show_names=False, ch_groups=None, to_sphere=True, axes=None, block=False, show=True, sphere=None, pointsize=None, linewidth=2, *, cmap=None, verbose=None)#
Plot sensors positions.
mne.Infoobject with information about the sensors and methods of measurement.
Whether to plot the sensors as 3d, topomap or as an interactive sensor selection dialog. Available options
'select', a set of channels can be selected interactively by using lasso selector or clicking while holding control key. The selected channels are returned along with the figure instance. Defaults to
The channel type to plot. Available options
'all', all the available mag, grad, eeg, seeg, dbs and ecog channels are plotted. If None (default), then channels are chosen in the order given above.
Title for the figure. If None (default), equals to
'Sensor positions (%s)' % ch_type.
Whether to display all channel names. If an array, only the channel names in the array are shown. Defaults to False.
- ch_groups‘position’ |
Channel groups for coloring the sensors. If None (default), default coloring scheme is used. If ‘position’, the sensors are divided into 8 regions. See
mne.viz.plot_raw(). If array, the channels are divided by picks given in the array. Also accepts a list of lists to allow channel groups of the same or different sizes.
New in v0.13.0.
Whether to project the 3d locations to a sphere. When False, the sensor array appears similar as to looking downwards straight above the subject’s head. Has no effect when
kind='3d'. Defaults to True.
New in v0.14.0.
- axesinstance of
Axes| instance of
Axes to draw the sensors to. If
kind='3d', axes must be an instance of Axes3D. If None (default), a new axes will be created.
New in v0.13.0.
Whether to halt program execution until the figure is closed. Defaults to False.
New in v0.13.0.
Show figure if True. Defaults to True.
float| array_like | instance of
None| ‘auto’ | ‘eeglab’
The sphere parameters to use for the head outline. Can be array-like of shape (4,) to give the X/Y/Z origin and radius in meters, or a single float to give just the radius (origin assumed 0, 0, 0). Can also be an instance of a spherical
ConductorModelto use the origin and radius from that object. If
'auto'the sphere is fit to digitization points. If
'eeglab'the head circle is defined by EEG electrodes
'Fpz'is not present, it will be approximated from the coordinates of
None(the default) is equivalent to
'auto'when enough extra digitization points are available, and (0, 0, 0, 0.095) otherwise.
New in v0.20.
Changed in version 1.1: Added
The size of the points. If None (default), will bet set to
The width of the outline. If
0, the outline will not be drawn.
str| instance of
Colormap for coloring ch_groups. Has effect only when
ch_groupsis list of list. If None, set to
matplotlib.rcParams["image.cmap"]. Defaults to None.
This function plots the sensor locations from the info structure using matplotlib. For drawing the sensors using PyVista see
New in v0.12.0.