MCPcopy
hub / github.com/matplotlib/matplotlib / _normalize_weight

Function _normalize_weight

lib/matplotlib/font_manager.py:174–175  ·  view source on GitHub ↗
(weight)

Source from the content-addressed store, hash-verified

172
173
174def _normalize_weight(weight):
175 return weight if isinstance(weight, Integral) else weight_dict[weight]
176
177
178def get_fontext_synonyms(fontext):

Callers 3

test_normalize_weightsFunction · 0.90
score_weightMethod · 0.85
_findfont_cachedMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_normalize_weightsFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…