MCPcopy
hub / github.com/matplotlib/matplotlib / set_family

Method set_family

lib/matplotlib/font_manager.py:937–948  ·  view source on GitHub ↗

Change the font family. Can be either an alias (generic name is CSS parlance), such as: 'serif', 'sans-serif', 'cursive', 'fantasy', or 'monospace', a real font name or a list of real font names. Real font names are not supported when :rc:`text.usetex` is `

(self, family)

Source from the content-addressed store, hash-verified

935 return generate_fontconfig_pattern(self)
936
937 def set_family(self, family):
938 """
939 Change the font family. Can be either an alias (generic name
940 is CSS parlance), such as: 'serif', 'sans-serif', 'cursive',
941 'fantasy', or 'monospace', a real font name or a list of real
942 font names. Real font names are not supported when
943 :rc:`text.usetex` is `True`. Default: :rc:`font.family`
944 """
945 family = mpl._val_or_rc(family, 'font.family')
946 if isinstance(family, str):
947 family = (family,)
948 self._family = tuple(family)
949
950 def set_style(self, style):
951 """

Callers 4

__init__Method · 0.95
set_fontfamilyMethod · 0.80
_find_fonts_by_propsMethod · 0.80
_findfont_cachedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected