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:
- info
mne.Info The measurement info, containing the locations of all channels in
con.names. Connections involving channels marked as bad ininfoare not shown.- con
Connectivity The connectivity data to plot.
Changed in version 1.0: Arrays are no longer supported.
- picks
str| 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 ininfothat correspond to the rows of an array.- cbar_label
str Label for the colorbar.
- n_con
int 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_distanceare then removed, so fewer thann_conconnections may be shown.- cmap
str| instance ofmatplotlib.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_distance
float 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.
- info
- Returns:
- figinstance of
mne.viz.Figure3D The 3D figure.
- figinstance of