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

Method draw_mathtext

lib/matplotlib/backends/backend_agg.py:225–233  ·  view source on GitHub ↗

Draw mathtext using :mod:`matplotlib.mathtext`.

(self, gc, x, y, s, prop, angle)

Source from the content-addressed store, hash-verified

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

Callers 1

draw_textMethod · 0.95

Calls 3

parseMethod · 0.45
get_antialiasedMethod · 0.45

Tested by

no test coverage detected