From fbcd75bad76c7be018ed568f51de2498b6c4829c Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Sun, 3 Mar 2013 16:07:51 -0600 Subject: [PATCH] Changed `step` to append the user specified `linestyle` onto the `linestyle` that is passed to `plot` instead of silently ignoring it. --- lib/matplotlib/axes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/axes.py b/lib/matplotlib/axes.py index d0d7c9156c01..d41f1a6f254b 100644 --- a/lib/matplotlib/axes.py +++ b/lib/matplotlib/axes.py @@ -4807,7 +4807,8 @@ def step(self, x, y, *args, **kwargs): if where not in ('pre', 'post', 'mid'): raise ValueError("'where' argument to step must be " "'pre', 'post' or 'mid'") - kwargs['linestyle'] = 'steps-' + where + ln_sty = kwargs.pop('linestyle', '') + kwargs['linestyle'] = 'steps-' + where + ln_sty return self.plot(x, y, *args, **kwargs)