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

Method set_color

lib/matplotlib/patches.py:413–428  ·  view source on GitHub ↗

Set both the edgecolor and the facecolor. Parameters ---------- c : :mpltype:`color` See Also -------- Patch.set_facecolor, Patch.set_edgecolor For setting the edge or face color individually.

(self, c)

Source from the content-addressed store, hash-verified

411 self._set_facecolor(color)
412
413 def set_color(self, c):
414 """
415 Set both the edgecolor and the facecolor.
416
417 Parameters
418 ----------
419 c : :mpltype:`color`
420
421 See Also
422 --------
423 Patch.set_facecolor, Patch.set_edgecolor
424 For setting the edge or face color individually.
425 """
426 self.set_edgecolor(c)
427 self.set_hatchcolor(c)
428 self.set_facecolor(c)
429
430 def _set_hatchcolor(self, color):
431 color = mpl._val_or_rc(color, 'hatch.color')

Callers 1

__init__Method · 0.95

Calls 3

set_edgecolorMethod · 0.95
set_hatchcolorMethod · 0.95
set_facecolorMethod · 0.95

Tested by

no test coverage detected