Skip to content
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
removed join statement while appending hardcoded elements
  • Loading branch information
not-so-rabh committed Feb 28, 2022
commit acb9e4ece1bda8483baffa6bb2c0d97a979e1107
3 changes: 1 addition & 2 deletions lib/matplotlib/backends/backend_svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1120,8 +1120,7 @@ def _draw_text_as_text(self, gc, x, y, s, prop, angle, ismath, mtext=None):
if weight != 400:
font_parts.append(f'{weight}')
font_parts.append(f'{short_float_fmt(prop.get_size())}px')
font_parts.append(", ".join([f'{prop.get_name()!r}'] +
prop.get_family()))
font_parts.append(f'{prop.get_name()!r}, {prop.get_family()[0]}')
style['font'] = ' '.join(font_parts)
if prop.get_stretch() != 'normal':
style['font-stretch'] = prop.get_stretch()
Expand Down