'Draw the math text using matplotlib.mathtext'

def draw_mathtext(self, gc, x, y, s, prop, angle):

    (ox, oy, width, height, descent, font_image, used_characters) = self.mathtext_parser.parse(s, self.dpi, prop)
    xd = (descent * sin(radians(angle)))
    yd = (descent * cos(radians(angle)))
    x = np.round(((x + ox) + xd))
    y = np.round(((y - oy) + yd))
    self._renderer.draw_text_image(font_image, x, (y + 1), angle, gc)
