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

Method set_edgecolor

lib/matplotlib/collections.py:914–930  ·  view source on GitHub ↗

Set the edgecolor(s) of the collection. Parameters ---------- c : :mpltype:`color` or list of :mpltype:`color` or 'face' The collection edgecolor(s). If a sequence, the patches cycle through it. If 'face', match the facecolor.

(self, c)

Source from the content-addressed store, hash-verified

912 self.stale = True
913
914 def set_edgecolor(self, c):
915 """
916 Set the edgecolor(s) of the collection.
917
918 Parameters
919 ----------
920 c : :mpltype:`color` or list of :mpltype:`color` or 'face'
921 The collection edgecolor(s). If a sequence, the patches cycle
922 through it. If 'face', match the facecolor.
923 """
924 # We pass through a default value for use in LineCollection.
925 # This allows us to maintain None as the default indicator in
926 # _original_edgecolor.
927 if isinstance(c, str) and c.lower() in ("none", "face"):
928 c = c.lower()
929 self._original_edgecolor = c
930 self._set_edgecolor(c)
931
932 def _set_hatchcolor(self, c):
933 c = mpl._val_or_rc(c, 'hatch.color')

Callers 3

__init__Method · 0.95
set_colorMethod · 0.95
set_colorMethod · 0.45

Calls 1

_set_edgecolorMethod · 0.95

Tested by

no test coverage detected