Skip to content

Commit

Permalink
Merge pull request #2006 from mdboom/fix-stretch-invalid
Browse files Browse the repository at this point in the history
ValueError: stretch is invalid
  • Loading branch information
mdboom committed May 15, 2013
2 parents d5b078b + de956ef commit ab5a141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/font_manager.py
Expand Up @@ -862,7 +862,7 @@ def set_stretch(self, stretch):
'ultra-expanded', or a numeric value in the range 0-1000.
"""
if stretch is None:
stretch = rcParams['font.weight']
stretch = rcParams['font.stretch']
try:
stretch = int(stretch)
if stretch < 0 or stretch > 1000:
Expand Down

0 comments on commit ab5a141

Please sign in to comment.