MCPcopy
hub / github.com/matplotlib/matplotlib / _expand_aliases

Method _expand_aliases

lib/matplotlib/font_manager.py:1337–1340  ·  view source on GitHub ↗
(family)

Source from the content-addressed store, hash-verified

1335
1336 @staticmethod
1337 def _expand_aliases(family):
1338 if family in ('sans', 'sans serif'):
1339 family = 'sans-serif'
1340 return mpl.rcParams['font.' + family]
1341
1342 # Each of the scoring functions below should return a value between
1343 # 0.0 (perfect match) and 1.0 (terrible match)

Callers 4

score_familyMethod · 0.95
_find_fonts_by_propsMethod · 0.95
_findfont_cachedMethod · 0.95
_expand_family_entryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected