Skip to content

Commit

Permalink
Changed step to append the user specified linestyle onto the
Browse files Browse the repository at this point in the history
`linestyle` that is passed to `plot` instead of silently ignoring it.
  • Loading branch information
tacaswell committed Mar 16, 2013
1 parent 1949a31 commit fbcd75b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/matplotlib/axes.py
Expand Up @@ -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)

Expand Down

0 comments on commit fbcd75b

Please sign in to comment.