MCPcopy
hub / github.com/mne-tools/mne-python / _setup_cmap

Function _setup_cmap

mne/viz/utils.py:1436–1444  ·  view source on GitHub ↗

Set color map interactivity.

(cmap, n_axes=1, norm=False)

Source from the content-addressed store, hash-verified

1434
1435
1436def _setup_cmap(cmap, n_axes=1, norm=False):
1437 """Set color map interactivity."""
1438 if cmap == "interactive":
1439 cmap = ("Reds" if norm else "RdBu_r", True)
1440 elif not isinstance(cmap, tuple):
1441 if cmap is None:
1442 cmap = "Reds" if norm else "RdBu_r"
1443 cmap = (cmap, False if n_axes > 2 else True)
1444 return cmap
1445
1446
1447def _prepare_joint_axes(n_maps, figsize=None):

Callers 8

_plot_epochs_imageFunction · 0.85
plot_ica_componentsFunction · 0.85
plot_tfr_topomapFunction · 0.85
plot_evoked_topomapFunction · 0.85
_plot_topomap_multi_cbarFunction · 0.85
_plot_imageFunction · 0.85
plotMethod · 0.85
plot_jointMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected