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 edbc818 commit f665b70Copy full SHA for f665b70
1 file changed
lib/matplotlib/font_manager.py
@@ -637,7 +637,7 @@ def __init__(self,
637
self.__props.__dict__.update(_init)
638
return
639
640
- if isinstance(family, str):
+ if is_string_like(family):
641
# Treat family as a fontconfig pattern if it is the only
642
# parameter provided.
643
if (style is None and
@@ -720,8 +720,11 @@ def set_family(self, family):
720
if family is None:
721
self.__props.__dict__.pop('family', None)
722
else:
723
724
+ family = [family]
725
self.__props.family = family
-
726
+ set_name = set_family
727
+
728
def set_style(self, style):
729
"""Set the font style. Values are: normal, italic or oblique."""
730
if style is None:
0 commit comments