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

Method set_facecolor

lib/matplotlib/collections.py:861–876  ·  view source on GitHub ↗

Set the facecolor(s) of the collection. *c* can be a color (all patches have same color), or a sequence of colors; if it is a sequence the patches will cycle through the sequence. If *c* is 'none', the patch will not be filled. Parameters ----------

(self, c)

Source from the content-addressed store, hash-verified

859 self.stale = True
860
861 def set_facecolor(self, c):
862 """
863 Set the facecolor(s) of the collection. *c* can be a color (all patches
864 have same color), or a sequence of colors; if it is a sequence the
865 patches will cycle through the sequence.
866
867 If *c* is 'none', the patch will not be filled.
868
869 Parameters
870 ----------
871 c : :mpltype:`color` or list of :mpltype:`color`
872 """
873 if isinstance(c, str) and c.lower() in ("none", "face"):
874 c = c.lower()
875 self._original_facecolor = c
876 self._set_facecolor(c)
877
878 def get_facecolor(self):
879 return self._facecolors

Callers 2

__init__Method · 0.95
set_colorMethod · 0.95

Calls 1

_set_facecolorMethod · 0.95

Tested by

no test coverage detected