mne.viz.plot_sensors

mne.viz.plot_sensors(info, kind='topomap', ch_type=None, title=None, show_names=False, show=True)

Plot sensors positions.

Parameters:

info : Instance of Info

Info structure containing the channel locations.

kind : str

Whether to plot the sensors as 3d or as topomap. Available options ‘topomap’, ‘3d’. Defaults to ‘topomap’.

ch_type : ‘mag’ | ‘grad’ | ‘eeg’ | ‘seeg’ | None

The channel type to plot. If None, then channels are chosen in the order given above.

title : str | None

Title for the figure. If None (default), equals to 'Sensor positions (%s)' % ch_type.

show_names : bool

Whether to display all channel names. Defaults to False.

show : bool

Show figure if True. Defaults to True.

Returns:

fig : instance of matplotlib figure

Figure containing the sensor topography.

Notes

This function plots the sensor locations from the info structure using matplotlib. For drawing the sensors using mayavi see mne.viz.plot_trans().

New in version 0.12.0.