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

Method set_color

lib/mpl_toolkits/axisartist/axis_artist.py:138–144  ·  view source on GitHub ↗
(self, color)

Source from the content-addressed store, hash-verified

136 return self._axis.majorTicks[0].tick1line
137
138 def set_color(self, color):
139 # docstring inherited
140 # Unlike the base Line2D.set_color, this also supports "auto".
141 if not cbook._str_equal(color, "auto"):
142 mcolors._check_color_like(color=color)
143 self._color = color
144 self.stale = True
145
146 def get_color(self):
147 return self.get_attribute_from_ref_artist("color")

Callers 4

draw_gridMethod · 0.45
test_curvelinear3Function · 0.45
test_curvelinear4Function · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by 2

test_curvelinear3Function · 0.36
test_curvelinear4Function · 0.36