MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_cmap

Method set_cmap

lib/matplotlib/image.py:1191–1194  ·  view source on GitHub ↗
(self, cmap)

Source from the content-addressed store, hash-verified

1189 super().set_norm(norm)
1190
1191 def set_cmap(self, cmap):
1192 if self._A is not None:
1193 raise RuntimeError('Cannot change colors after loading data')
1194 super().set_cmap(cmap)
1195
1196 def get_cursor_data(self, event):
1197 # docstring inherited

Callers 14

streamplotFunction · 0.45
set_cmapFunction · 0.45
__init__Method · 0.45
apply_callbackFunction · 0.45
scatterMethod · 0.45
hexbinMethod · 0.45
on_changedMethod · 0.45
test_mappable_no_alphaFunction · 0.45
test_cm_set_cmap_errorFunction · 0.45

Calls

no outgoing calls

Tested by 5

test_mappable_no_alphaFunction · 0.36
test_cm_set_cmap_errorFunction · 0.36