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

Skip to content

Commit c540dc4

Browse files
committed
Fix bug in texmanager font-family parsing
1 parent f237a74 commit c540dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/texmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def __init__(self):
169169
ff = rcParams['font.family']
170170
if len(ff) == 1 and ff[0].lower() in self.font_families:
171171
self.font_family = ff[0].lower()
172-
elif ff.lower() in self.font_families:
172+
elif isinstance(ff, basestring) and ff.lower() in self.font_families:
173173
self.font_family = ff.lower()
174174
else:
175175
mpl.verbose.report(

0 commit comments

Comments
 (0)