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

Method set_bad

lib/matplotlib/colors.py:879–881  ·  view source on GitHub ↗

Set the color for masked values.

(self, color='k', alpha=None)

Source from the content-addressed store, hash-verified

877 pending=True,
878 alternative="cmap.with_extremes(bad=...) or Colormap(bad=...)")
879 def set_bad(self, color='k', alpha=None):
880 """Set the color for masked values."""
881 self._set_extremes(bad=(color, alpha))
882
883 def get_under(self):
884 """Get the color for low out-of-range values."""

Callers 2

test_colormap_copyFunction · 0.80
test_colormap_equalsFunction · 0.80

Calls 1

_set_extremesMethod · 0.95

Tested by 2

test_colormap_copyFunction · 0.64
test_colormap_equalsFunction · 0.64