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 5fd2d99 commit cae0302Copy full SHA for cae0302
2 files changed
lib/matplotlib/font_manager.py
@@ -93,6 +93,9 @@
93
'bold': 700,
94
'heavy': 800,
95
'extra bold': 800,
96
+ 'extrabold': 800,
97
+ 'superbold': 800,
98
+ 'ultrabold': 800,
99
'black': 900,
100
}
101
_weight_regexes = [
lib/matplotlib/tests/test_font_manager.py
@@ -427,6 +427,9 @@ def test_normalize_weights():
427
assert _normalize_weight('bold') == 700
428
assert _normalize_weight('heavy') == 800
429
assert _normalize_weight('extra bold') == 800
430
+ assert _normalize_weight('extrabold') == 800
431
+ assert _normalize_weight('superbold') == 800
432
+ assert _normalize_weight('ultrabold') == 800
433
assert _normalize_weight('black') == 900
434
with pytest.raises(KeyError):
435
_normalize_weight('invalid')
0 commit comments