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)
| 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 | """ |