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 269190e

Browse filesBrowse files
committed
removed redundant code
Do not need to explicitly call set_zorder because it gets done in the call to coll.update.
1 parent 55a1e8a commit 269190e
Copy full SHA for 269190e

File tree

Expand file treeCollapse file tree

1 file changed

+0
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-4
lines changed

‎lib/matplotlib/axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes.py
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3763,8 +3763,6 @@ def hlines(self, y, xmin, xmax, colors='k', linestyles='solid',
37633763
for thisxmin, thisxmax, thisy in zip(xmin, xmax, y)]
37643764
coll = mcoll.LineCollection(verts, colors=colors,
37653765
linestyles=linestyles, label=label)
3766-
if 'zorder' in kwargs:
3767-
coll.set_zorder(kwargs['zorder'])
37683766
self.add_collection(coll)
37693767
coll.update(kwargs)
37703768

@@ -3847,8 +3845,6 @@ def vlines(self, x, ymin, ymax, colors='k', linestyles='solid',
38473845
#print 'creating line collection'
38483846
coll = mcoll.LineCollection(verts, colors=colors,
38493847
linestyles=linestyles, label=label)
3850-
if 'zorder' in kwargs:
3851-
coll.set_zorder(kwargs['zorder'])
38523848
self.add_collection(coll)
38533849
coll.update(kwargs)
38543850

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.