MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / set_color

Method set_color

site-packages/matplotlib/text.py:958–972  ·  view source on GitHub ↗

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

(self, color)

Source from the content-addressed store, hash-verified

956 self.stale = True
957
958 def set_color(self, color):
959 """
960 Set the foreground color of the text
961
962 Parameters
963 ----------
964 color : color
965 """
966 # Make sure it is hashable, or get_prop_tup will fail.
967 try:
968 hash(color)
969 except TypeError:
970 color = tuple(color)
971 self._color = color
972 self.stale = True
973
974 def set_horizontalalignment(self, align):
975 """

Callers 13

__init__Method · 0.95
xkcd.pyFile · 0.45
colorfuncFunction · 0.45
drawMethod · 0.45
_config_axesMethod · 0.45
test_curvelinear3Function · 0.45
test_curvelinear4Function · 0.45
set_tick_paramsMethod · 0.45
_default_update_propMethod · 0.45
set_label_propsMethod · 0.45
changedMethod · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by 2

test_curvelinear3Function · 0.36
test_curvelinear4Function · 0.36