Skip to content

Commit

Permalink
Merge pull request #1802 from tacaswell/step_linestyle
Browse files Browse the repository at this point in the history
Step linestyle
  • Loading branch information
dmcdougall committed Mar 23, 2013
2 parents b79b55d + fec0f63 commit a844fbb
Show file tree
Hide file tree
Showing 6 changed files with 1,229 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
@@ -1,3 +1,6 @@
2013-03-19 Added support for passing `linestyle` kwarg to `step` so all `plot`
kwargs are passed to the underlying `plot` call. -TAC

2013-02-25 Added classes CubicTriInterpolator, UniformTriRefiner, TriAnalyzer
to matplotlib.tri module. - GBy

Expand Down
3 changes: 2 additions & 1 deletion lib/matplotlib/axes.py
Expand Up @@ -4809,7 +4809,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
usr_linestyle = kwargs.pop('linestyle', '')
kwargs['linestyle'] = 'steps-' + where + usr_linestyle

return self.plot(x, y, *args, **kwargs)

Expand Down
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a844fbb

Please sign in to comment.