mne_connectivity.viz.plot_sensors_connectivity#
- mne_connectivity.viz.plot_sensors_connectivity(info, con, picks=None, cbar_label='Connectivity', n_con=20, cmap='RdBu')[source]#
Visualize the sensor connectivity in 3D.
- Parameters:
- info
dict
|None
The measurement info.
- con
array
, shape (n_channels, n_channels) |Connectivity
The computed connectivity measure(s).
- picks
str
| array_like |slice
|None
Channels to include. Slices and lists of integers will be interpreted as channel indices. In lists, channel type strings (e.g.,
['meg', 'eeg']
) will pick channels of those types, channel name strings (e.g.,['MEG0111', 'MEG2623']
will pick the given channels. Can also be the string values'all'
to pick all channels, or'data'
to pick data channels. None (default) will pick good data channels. Note that channels ininfo['bads']
will be included if their names or indices are explicitly provided. Indices of selected channels.- cbar_label
str
Label for the colorbar.
- n_con
int
Number of strongest connections shown. By default 20.
- cmap
str
| instance ofmatplotlib.colors.Colormap
Colormap for coloring connections by strength. If
str
, must be a valid Matplotlib colormap (i.e. a valid key ofmatplotlib.colormaps
). Default is"RdBu"
.
- info
- Returns:
- figinstance of Renderer
The 3D figure.
Examples using mne_connectivity.viz.plot_sensors_connectivity
#
Comparing spectral connectivity computed over time or over trials
Compute all-to-all connectivity in sensor space