(
self,
text='',
color=None,
fontproperties=None,
usetex=None,
parse_math=None,
wrap=False,
verticalalignment='baseline',
horizontalalignment='left',
multialignment=None,
rotation=None,
transform_rotates_text=False,
linespacing=None,
rotation_mode=None,
antialiased=None
)
| 211 | self.update(kwargs) |
| 212 | |
| 213 | def _reset_visual_defaults( |
| 214 | self, |
| 215 | text='', |
| 216 | color=None, |
| 217 | fontproperties=None, |
| 218 | usetex=None, |
| 219 | parse_math=None, |
| 220 | wrap=False, |
| 221 | verticalalignment='baseline', |
| 222 | horizontalalignment='left', |
| 223 | multialignment=None, |
| 224 | rotation=None, |
| 225 | transform_rotates_text=False, |
| 226 | linespacing=None, |
| 227 | rotation_mode=None, |
| 228 | antialiased=None |
| 229 | ): |
| 230 | self.set_text(text) |
| 231 | self.set_color(mpl._val_or_rc(color, "text.color")) |
| 232 | self.set_fontproperties(fontproperties) |
| 233 | self.set_usetex(usetex) |
| 234 | self.set_parse_math(mpl._val_or_rc(parse_math, 'text.parse_math')) |
| 235 | self.set_wrap(wrap) |
| 236 | self.set_verticalalignment(verticalalignment) |
| 237 | self.set_horizontalalignment(horizontalalignment) |
| 238 | self._multialignment = multialignment |
| 239 | self.set_rotation(rotation) |
| 240 | self._transform_rotates_text = transform_rotates_text |
| 241 | self._bbox_patch = None # a FancyBboxPatch instance |
| 242 | self._renderer = None |
| 243 | if linespacing is None: |
| 244 | linespacing = 'normal' # Maybe use rcParam later. |
| 245 | self.set_linespacing(linespacing) |
| 246 | self.set_rotation_mode(rotation_mode) |
| 247 | self.set_antialiased(mpl._val_or_rc(antialiased, 'text.antialiased')) |
| 248 | |
| 249 | def update(self, kwargs): |
| 250 | # docstring inherited |
no test coverage detected