Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

first pass at getting fixing Issue #1622

  • Loading branch information...
commit aa476d871f62b9b30a27f7d198378b4f439522b8 1 parent 6a12658
@tacaswell tacaswell authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 lib/matplotlib/axes.py
View
11 lib/matplotlib/axes.py
@@ -3763,6 +3763,8 @@ 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)
@@ -3845,6 +3847,8 @@ 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)
@@ -5441,7 +5445,9 @@ def errorbar(self, x, y, yerr=None, xerr=None,
lines_kw['lw']=kwargs['lw']
if 'transform' in kwargs:
lines_kw['transform'] = kwargs['transform']
-
+ if 'zorder' in kwargs:
+ lines_kw['zorder'] = kwargs['zorder']
+
# arrays fine here, they are booleans and hence not units
if not iterable(lolims):
lolims = np.asarray([lolims]*len(x), bool)
@@ -5489,6 +5495,9 @@ def xywhere(xs, ys, mask):
plot_kw['mew']=kwargs['mew']
if 'transform' in kwargs:
plot_kw['transform'] = kwargs['transform']
+ if 'zorder' in kwargs:
+ plot_kw['zorder'] = kwargs['zorder']
+
if xerr is not None:
if (iterable(xerr) and len(xerr)==2 and
Please sign in to comment.
Something went wrong with that request. Please try again.