Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de956ef

Browse files
committed
Fix #2006: stretch is invalid, introduced in cc61700
1 parent d5b078b commit de956ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/font_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ def set_stretch(self, stretch):
862862
'ultra-expanded', or a numeric value in the range 0-1000.
863863
"""
864864
if stretch is None:
865-
stretch = rcParams['font.weight']
865+
stretch = rcParams['font.stretch']
866866
try:
867867
stretch = int(stretch)
868868
if stretch < 0 or stretch > 1000:

0 commit comments

Comments
 (0)