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

Skip to content

Commit be91f14

Browse files
committed
Bugfix #1671570: Invalid CSS 2 styles in SVG output
svn path=/trunk/matplotlib/; revision=3791
1 parent 24b24b7 commit be91f14

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
@@ -246,7 +246,7 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath):
246246

247247
thetext = escape_xml_text(s)
248248
fontfamily = font.family_name
249-
fontstyle = font.style_name
249+
fontstyle = prop.get_style()
250250
fontsize = prop.get_size_in_points()
251251
color = rgb2hex(gc.get_rgb())
252252

0 commit comments

Comments
 (0)