Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 60ff88f

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.