Draw mathtext using :mod:`matplotlib.mathtext`.
(self, gc, x, y, s, prop, angle)
| 223 | gc1.restore() |
| 224 | |
| 225 | def draw_mathtext(self, gc, x, y, s, prop, angle): |
| 226 | """Draw mathtext using :mod:`matplotlib.mathtext`.""" |
| 227 | parse = self.mathtext_parser.parse( |
| 228 | s, self.dpi, prop, antialiased=gc.get_antialiased()) |
| 229 | self._draw_text_glyphs_and_boxes( |
| 230 | gc, x, y, angle, |
| 231 | ((font, size, glyph_index, 0, 1, dx, dy) |
| 232 | for font, size, _char, glyph_index, dx, dy in parse.glyphs), |
| 233 | parse.rects) |
| 234 | |
| 235 | def draw_text(self, gc, x, y, s, prop, angle, ismath=False, mtext=None): |
| 236 | # docstring inherited |
no test coverage detected