mne_connectivity.viz.plot_sensors_connectivity#

mne_connectivity.viz.plot_sensors_connectivity(info, con, picks=None, *, cbar_label='Connectivity', n_con=20, cmap='RdBu', min_distance=0.05)[source]#

Visualize the sensor connectivity in 3D.

Parameters:
infomne.Info

The measurement info, containing the locations of all channels in con.names. Connections involving channels marked as bad in info are not shown.

conConnectivity

The connectivity data to plot.

Changed in version 1.0: Arrays are no longer supported.

picksstr | array_like | slice | None

Channels to include in the plot. Connections involving any of these channels are shown. Slices and lists of integers are interpreted as indices of the channels in con.names. In lists, channel type strings (e.g., ['meg', 'eeg']) pick channels of those types, and channel name strings (e.g., ['MEG0111', 'MEG2623']) pick the given channels. Can also be the string values 'all' to pick all channels, or 'data' to pick data channels. None (default) picks all good channels.

Changed in version 1.0: Selects the channels whose connections are shown, as in plot_connectivity(), instead of the channels in info that correspond to the rows of an array.

cbar_labelstr

Label for the colorbar.

n_conint

Number of strongest connections shown (default 20). Strength is the absolute value of the connectivity. Self-connections are ignored if they are the same for all channels (e.g., coherence), and symmetric data is counted once per pair of channels. Connections between sensors closer than min_distance are then removed, so fewer than n_con connections may be shown.

cmapstr | instance of matplotlib.colors.Colormap

Colormap for coloring connections by strength. If a str, must be a valid Matplotlib colormap (i.e. a valid key of matplotlib.colormaps). Default is "RdBu".

min_distancefloat

The minimum distance required between two sensors to plot a connection between them, in meters. Default is 0.05 (i.e. 5 cm).

Added in version 0.8.

Returns:
figinstance of mne.viz.Figure3D

The 3D figure.