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

Method set_color

lib/matplotlib/lines.py:1075–1085  ·  view source on GitHub ↗

Set the color of the line. Parameters ---------- color : :mpltype:`color`

(self, color)

Source from the content-addressed store, hash-verified

1073 self._antialiased = b
1074
1075 def set_color(self, color):
1076 """
1077 Set the color of the line.
1078
1079 Parameters
1080 ----------
1081 color : :mpltype:`color`
1082 """
1083 mcolors._check_color_like(color=color)
1084 self._color = color
1085 self.stale = True
1086
1087 def set_drawstyle(self, drawstyle):
1088 """

Callers 3

__init__Method · 0.95
test_valid_colorsFunction · 0.95
create_artistsMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_valid_colorsFunction · 0.76