Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed redundant code

Do not need to explicitly call set_zorder because it gets done
in the call to coll.update.
  • Loading branch information...
commit 269190e37aacaf1c8c4c58dd5b48533aecad4d6b 1 parent 55a1e8a
@tacaswell tacaswell authored
Showing with 0 additions and 4 deletions.
  1. +0 −4 lib/matplotlib/axes.py
View
4 lib/matplotlib/axes.py
@@ -3763,8 +3763,6 @@ def hlines(self, y, xmin, xmax, colors='k', linestyles='solid',
for thisxmin, thisxmax, thisy in zip(xmin, xmax, y)]
coll = mcoll.LineCollection(verts, colors=colors,
linestyles=linestyles, label=label)
- if 'zorder' in kwargs:
- coll.set_zorder(kwargs['zorder'])
self.add_collection(coll)
coll.update(kwargs)
@@ -3847,8 +3845,6 @@ def vlines(self, x, ymin, ymax, colors='k', linestyles='solid',
#print 'creating line collection'
coll = mcoll.LineCollection(verts, colors=colors,
linestyles=linestyles, label=label)
- if 'zorder' in kwargs:
- coll.set_zorder(kwargs['zorder'])
self.add_collection(coll)
coll.update(kwargs)
Please sign in to comment.
Something went wrong with that request. Please try again.