Skip to content

Fix for issue4024 #4532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Almost there.
  • Loading branch information
mdehoon committed Jun 15, 2015
commit af0e5ee313e4fef6c263e7abaaa5ef490dd7f90b
16 changes: 8 additions & 8 deletions lib/matplotlib/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,7 @@ def draw(self, renderer):
textobj._draw_bbox(renderer, posx, posy)

color = textobj.get_color()
props = textobj._fontproperties
gc = renderer.new_gc()
gc.set_foreground(color)
gc.set_alpha(textobj.get_alpha())
Expand All @@ -776,21 +777,20 @@ def draw(self, renderer):
textrenderer = PathEffectRenderer(
textobj.get_path_effects(), renderer)
if textobj.get_usetex():
textrenderer.draw_tex(gc, x, y, clean_line,
textobj._fontproperties, angle,
mtext=mtext)
textrenderer._draw_text_as_path(gc, x, y, clean_line,
prop, angle,
ismath="TeX")
else:
textrenderer.draw_text(gc, x, y, clean_line,
textobj._fontproperties, angle,
ismath=ismath, mtext=mtext)
textrenderer._draw_text_as_path(gc, x, y, clean_line,
props, angle, ismath)
else:
if textobj.get_usetex():
renderer.draw_tex(gc, x, y, clean_line,
textobj._fontproperties, angle,
props, angle,
mtext=mtext)
else:
renderer.draw_text(gc, x, y, clean_line,
textobj._fontproperties, angle,
props, angle,
ismath=ismath, mtext=mtext)

gc.restore()
Expand Down