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

Method set_color

lib/matplotlib/text.py:1116–1129  ·  view source on GitHub ↗

Set the foreground color of the text Parameters ---------- color : :mpltype:`color`

(self, color)

Source from the content-addressed store, hash-verified

1114 self.stale = True
1115
1116 def set_color(self, color):
1117 """
1118 Set the foreground color of the text
1119
1120 Parameters
1121 ----------
1122 color : :mpltype:`color`
1123 """
1124 # "auto" is only supported by axisartist, but we can just let it error
1125 # out at draw time for simplicity.
1126 if not cbook._str_equal(color, "auto"):
1127 mpl.colors._check_color_like(color=color)
1128 self._color = color
1129 self.stale = True
1130
1131 def set_horizontalalignment(self, align):
1132 """

Callers 15

clearMethod · 0.45
set_tick_paramsMethod · 0.45
__init__Method · 0.45
_default_update_propMethod · 0.45
changedMethod · 0.45
__init__Method · 0.45
_initMethod · 0.45
axes_ticks.pyFile · 0.45
sankey_basics.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected