Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a844fbb

Browse files
committed
Merge pull request #1802 from tacaswell/step_linestyle
Step linestyle
2 parents b79b55d + fec0f63 commit a844fbb

File tree

6 files changed

+1229
-3
lines changed

6 files changed

+1229
-3
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2013-03-19 Added support for passing `linestyle` kwarg to `step` so all `plot`
2+
kwargs are passed to the underlying `plot` call. -TAC
3+
14
2013-02-25 Added classes CubicTriInterpolator, UniformTriRefiner, TriAnalyzer
25
to matplotlib.tri module. - GBy
36

lib/matplotlib/axes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4809,7 +4809,8 @@ def step(self, x, y, *args, **kwargs):
48094809
if where not in ('pre', 'post', 'mid'):
48104810
raise ValueError("'where' argument to step must be "
48114811
"'pre', 'post' or 'mid'")
4812-
kwargs['linestyle'] = 'steps-' + where
4812+
usr_linestyle = kwargs.pop('linestyle', '')
4813+
kwargs['linestyle'] = 'steps-' + where + usr_linestyle
48134814

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

Binary file not shown.

0 commit comments

Comments
 (0)