Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1a01475

Browse files
committed
Fix bug where mathtext colors were not being set properly.
svn path=/trunk/matplotlib/; revision=3753
1 parent 7a6b1d3 commit 1a01475

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,8 +1348,8 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath=False):
13481348
# this complication is avoided, but of course, those fonts can
13491349
# not be subsetted.
13501350

1351-
if ismath: return self.draw_mathtext(gc, x, y, s, prop, angle)
13521351
self.check_gc(gc, gc._rgb)
1352+
if ismath: return self.draw_mathtext(gc, x, y, s, prop, angle)
13531353

13541354
fontsize = prop.get_size_in_points()
13551355

0 commit comments

Comments
 (0)