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

Method set_color

lib/matplotlib/collections.py:830–848  ·  view source on GitHub ↗

Set the edgecolor, facecolor and hatchcolor. .. versionchanged:: 3.11 Now sets the hatchcolor as well. Parameters ---------- c : :mpltype:`color` or list of RGBA tuples See Also -------- Collection.set_facecolor, Collect

(self, c)

Source from the content-addressed store, hash-verified

828 return mpl.rcParams['patch.antialiased']
829
830 def set_color(self, c):
831 """
832 Set the edgecolor, facecolor and hatchcolor.
833
834 .. versionchanged:: 3.11
835 Now sets the hatchcolor as well.
836
837 Parameters
838 ----------
839 c : :mpltype:`color` or list of RGBA tuples
840
841 See Also
842 --------
843 Collection.set_facecolor, Collection.set_edgecolor, Collection.set_hatchcolor
844 For setting the facecolor, edgecolor, and hatchcolor individually.
845 """
846 self.set_facecolor(c)
847 self.set_edgecolor(c)
848 self.set_hatchcolor(c)
849
850 def _get_default_facecolor(self):
851 # This may be overridden in a subclass.

Callers

nothing calls this directly

Calls 3

set_facecolorMethod · 0.95
set_edgecolorMethod · 0.95
set_hatchcolorMethod · 0.95

Tested by

no test coverage detected