Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 431edb7 commit 143973aCopy full SHA for 143973a
lib/matplotlib/font_manager.py
@@ -52,6 +52,7 @@
52
set
53
except NameError:
54
from sets import Set as set
55
+from collections import Iterable
56
import matplotlib
57
from matplotlib import afm
58
from matplotlib import ft2font
@@ -822,7 +823,9 @@ def set_family(self, family):
822
823
if family is None:
824
family = rcParams['font.family']
825
if is_string_like(family):
- family = [family]
826
+ family = [six.text_type(family)]
827
+ elif (not is_string_like(family) and isinstance(family, Iterable)):
828
+ family = [six.text_type(f) for f in family]
829
self._family = family
830
set_name = set_family
831
0 commit comments