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

Skip to content

Commit 2c33f8b

Browse files
committed
One more SVG color detail (in mathtext)
svn path=/trunk/matplotlib/; revision=4443
1 parent 103a4ae commit 2c33f8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_svg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def _draw_mathtext(self, gc, x, y, s, prop, angle):
409409
svg.append('</text>\n')
410410

411411
if len(svg_rects):
412-
style = "fill: black; stroke: none"
412+
style = "fill: %s; stroke: none" % color
413413
svg.append('<g style="%s" transform="' % style)
414414
if angle != 0:
415415
svg.append('translate(%s,%s) rotate(%1.1f)'

0 commit comments

Comments
 (0)