From de956ef7d8f978a44abe2ad5477710da3e12124f Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Wed, 15 May 2013 08:15:04 -0400 Subject: [PATCH] Fix #2006: stretch is invalid, introduced in cc61700 --- lib/matplotlib/font_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/font_manager.py b/lib/matplotlib/font_manager.py index e4ff3ca676cf..584a930472f2 100644 --- a/lib/matplotlib/font_manager.py +++ b/lib/matplotlib/font_manager.py @@ -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: