Set the foreground color of the text Parameters ---------- color : :mpltype:`color`
(self, color)
| 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 | """ |
no outgoing calls
no test coverage detected