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

Method _get_colorizer

lib/matplotlib/colorizer.py:623–629  ·  view source on GitHub ↗
(cmap, norm, colorizer)

Source from the content-addressed store, hash-verified

621
622 @staticmethod
623 def _get_colorizer(cmap, norm, colorizer):
624 if isinstance(colorizer, Colorizer):
625 _ScalarMappable._check_exclusionary_keywords(
626 Colorizer, cmap=cmap, norm=norm
627 )
628 return colorizer
629 return Colorizer(cmap, norm)
630
631# The docstrings here must be generic enough to apply to all relevant methods.
632mpl._docstring.interpd.register(

Callers 3

__init__Method · 0.95
__init__Method · 0.80
__init__Method · 0.80

Calls 2

ColorizerClass · 0.85

Tested by

no test coverage detected