Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
174
def
_normalize_weight(weight):
175
return
weight
if
isinstance(weight, Integral)
else
weight_dict[weight]
176
177
178
def
get_fontext_synonyms(fontext):
Callers
3
test_normalize_weights
Function · 0.90
score_weight
Method · 0.85
_findfont_cached
Method · 0.85
Calls
no outgoing calls
Tested by
1
test_normalize_weights
Function · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…