Skip to content

Commit 60ff88f

Browse files
authored
Merge pull request #11211 from timhoffm/remove-step-linestyle-kwarg
Revert explicit linestyle kwarg on step()
2 parents 4d1ca36 + 0034160 commit 60ff88f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
17331733
#### Specialized plotting
17341734

17351735
@_preprocess_data(replace_names=["x", "y"], label_namer="y")
1736-
def step(self, x, y, *args, where='pre', linestyle='', **kwargs):
1736+
def step(self, x, y, *args, where='pre', **kwargs):
17371737
"""
17381738
Make a step plot.
17391739
@@ -1797,7 +1797,7 @@ def step(self, x, y, *args, where='pre', linestyle='', **kwargs):
17971797
if where not in ('pre', 'post', 'mid'):
17981798
raise ValueError("'where' argument to step must be "
17991799
"'pre', 'post' or 'mid'")
1800-
kwargs['linestyle'] = 'steps-' + where + linestyle
1800+
kwargs['linestyle'] = 'steps-' + where + kwargs.get('linestyle', '')
18011801

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy