mne_rsa.plot_rdms#

mne_rsa.plot_rdms(rdms, names=None, items=None, n_rows=1, cmap='viridis', title=None)[source]#

Plot one or more RDMs.

Parameters:
rdmsndarray | list of ndarray

The RDM or list of RDMs to plot. The RDMs can either be two-dimensional (n_items x n_items) matrices or be in condensed form.

namesstr | list of str | None

For each given RDM, a name to show above it. Defaults to no names.

itemslist of str | None

The each item (row/col) in the RDM, a string description. This will be displayed along the axes. Defaults to None which means the items will be numbered.

n_rowsint

Number of rows to use when plotting multiple RDMs at once. Defaults to 1.

cmapstr

Matplotlib colormap to use. See https://matplotlib.org/gallery/color/colormap_reference.html for all possibilities. Defaults to ‘viridis’.

titlestr | None

Title for the entire figure. Defaults to no title.

Returns:
figmatplotlib figure

The figure produced by matplotlib