MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / set_cmap

Method set_cmap

site-packages/matplotlib/cm.py:334–344  ·  view source on GitHub ↗

set the colormap for luminance data Parameters ---------- cmap : colormap or registered colormap name

(self, cmap)

Source from the content-addressed store, hash-verified

332 self.changed()
333
334 def set_cmap(self, cmap):
335 """
336 set the colormap for luminance data
337
338 Parameters
339 ----------
340 cmap : colormap or registered colormap name
341 """
342 cmap = get_cmap(cmap)
343 self.cmap = cmap
344 self.changed()
345
346 def set_norm(self, norm):
347 """Set the normalization instance.

Callers 13

on_changedMethod · 0.45
on_changedFunction · 0.45
on_mappable_changedMethod · 0.45
streamplotFunction · 0.45
set_cmapFunction · 0.45
apply_callbackFunction · 0.45
scatterMethod · 0.45
hexbinMethod · 0.45
on_changedMethod · 0.45
pcolorMethod · 0.45
pcolormeshMethod · 0.45
pcolorfastMethod · 0.45

Calls 2

changedMethod · 0.95
get_cmapFunction · 0.85

Tested by

no test coverage detected