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

Skip to content

Commit 7e434f3

Browse files
committed
Fix font manager bug.
svn path=/trunk/matplotlib/; revision=8329
1 parent 0cf40e0 commit 7e434f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/font_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ def score_family(self, families, family2):
10701070
family1 = family1.lower()
10711071
if family1 in font_family_aliases:
10721072
if family1 in ('sans', 'sans serif'):
1073-
family1 == 'sans-serif'
1073+
family1 = 'sans-serif'
10741074
options = rcParams['font.' + family1]
10751075
options = [x.lower() for x in options]
10761076
if family2 in options:

0 commit comments

Comments
 (0)