mne_rsa.plot_rdms_topo#

mne_rsa.plot_rdms_topo(rdms, info, time=None, layout=None, fig=None, axis_facecolor='w', axis_spinecolor='w', fig_facecolor='w', figsize=(6.4, 4.8), cmap='viridis', show=True)[source]#

Plot RDMs on 2D sensor topography.

Parameters:
rdms: ndarray, shape (n_sensors,[ n_times,] n_rdm_datapts)

RDMs of MEG/EEG recordings; one RDM for each sensor and time point.

info: mne.io.meas_info.Info

Info object that contains meta data of MEG/EEG recordings.

time: int | [int, int] | None

A time point (int) or time window ([int, int]) for which RDMs are plotted. When a time window is given, averge RDMs for the window are plotted. The default (None) plots the average RDMs of all the time points. Start of the time window is inclusive, while the end is exclusive.

layout: mne.channels.layout.Layout, optional

Layout objects containing sensor layout info. The default, layout=None, will figure out layout based on info.

fig: matplotlib.pyplot.Figure | None, optional

Figure object on which RDMs on 2D sensor topography are plotted. The default (None) creates a new Figure object with a title based on time parameter.

axis_facecolor: str, optional

Face color of the each RDM. Defaults to ‘w’, white.

axis_spinecolor: str, optional

Spine color of each RDM. Defaults to ‘w’, white.

fig_facecolor: str, optional

Face color of the entire topography. Defaults to ‘w’, white.

figsize: tuple of float, optional

Figure size. The first element specify width and the second height. Defaults to (6.4, 4.8).

cmap: str, optional

Colormap used for plotting RDMs. Defaults to ‘viridis’. Check matplotlib.pyplot.imshow() for details.

show: bool, optional

Whether to display the generated figure. Defaults to True.

Returns:
fig: matplotlib.pyplot.Figure

Figure object in which RDMs are plotted on 2D sensor topography.