Skip to content

Commit 1791319

Browse files
Update backend_svg.py
inlining `style`
1 parent ec1447d commit 1791319

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/matplotlib/backends/backend_svg.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,11 +1168,9 @@ def _get_all_quoted_names(prop):
11681168
'center': 'middle'}
11691169
font_style['text-anchor'] = ha_mpl_to_svg[mtext.get_ha()]
11701170

1171-
style = _generate_css({**font_style, **color_style})
1172-
11731171
attrib['x'] = _short_float_fmt(ax)
11741172
attrib['y'] = _short_float_fmt(ay)
1175-
attrib['style'] = style
1173+
attrib['style'] = _generate_css({**font_style, **color_style})
11761174
attrib['transform'] = _generate_transform([
11771175
("rotate", (-angle, ax, ay))])
11781176

0 commit comments

Comments
 (0)