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

Method with_extremes

lib/matplotlib/colors.py:921–929  ·  view source on GitHub ↗

Return a copy of the colormap, for which the colors for masked (*bad*) values and, when ``norm.clip = False``, low (*under*) and high (*over*) out-of-range values, have been set accordingly.

(self, *, bad=None, under=None, over=None)

Source from the content-addressed store, hash-verified

919 self._set_extremes(bad=bad, under=under, over=over)
920
921 def with_extremes(self, *, bad=None, under=None, over=None):
922 """
923 Return a copy of the colormap, for which the colors for masked (*bad*)
924 values and, when ``norm.clip = False``, low (*under*) and high (*over*)
925 out-of-range values, have been set accordingly.
926 """
927 new_cm = self.copy()
928 new_cm._set_extremes(bad=bad, under=under, over=over)
929 return new_cm
930
931 def _set_extremes(self, bad=None, under=None, over=None):
932 """

Calls 2

copyMethod · 0.95
_set_extremesMethod · 0.80