def draw_text(self, gc, x, y, s, prop, angle, ismath):
if ismath: s = self.strip_math(s)<EOL>DEBUG_MSG("<STR_LIT>", <NUM_LIT:1>, self)<EOL>gc.select()<EOL>self.handle_clip_rectangle(gc)<EOL>gfx_ctx = gc.gfx_ctx<EOL>font = self.get_wx_font(s, prop)<EOL>color = gc.get_wxcolour(gc.get_rgb())<EOL>gfx_ctx.SetFont(font, color)<EOL>w, h, d = self.get_text_width_height_descent(s, prop, ismath)<EOL>x = int(x)<EOL>y = int(y-h)<EOL>if angle == <NUM_LIT:0.0>:<EOL><INDENT>gfx_ctx.DrawText(s, x, y)<EOL><DEDENT>else:<EOL><INDENT>rads = angle / <NUM_LIT> * math.pi<EOL>xo = h * math.sin(rads)<EOL>yo = h * math.cos(rads)<EOL>gfx_ctx.DrawRotatedText(s, x - xo, y - yo, rads)<EOL><DEDENT>gc.unselect()<EOL>
Render the matplotlib.text.Text instance
None)