@@ -3763,6 +3763,8 @@ 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' ])
37663768 self .add_collection (coll )
37673769 coll .update (kwargs )
37683770
@@ -3845,6 +3847,8 @@ def vlines(self, x, ymin, ymax, colors='k', linestyles='solid',
38453847 #print 'creating line collection'
38463848 coll = mcoll .LineCollection (verts , colors = colors ,
38473849 linestyles = linestyles , label = label )
3850+ if 'zorder' in kwargs :
3851+ coll .set_zorder (kwargs ['zorder' ])
38483852 self .add_collection (coll )
38493853 coll .update (kwargs )
38503854
@@ -5441,7 +5445,9 @@ def errorbar(self, x, y, yerr=None, xerr=None,
54415445 lines_kw ['lw' ]= kwargs ['lw' ]
54425446 if 'transform' in kwargs :
54435447 lines_kw ['transform' ] = kwargs ['transform' ]
5444-
5448+ if 'zorder' in kwargs :
5449+ lines_kw ['zorder' ] = kwargs ['zorder' ]
5450+
54455451 # arrays fine here, they are booleans and hence not units
54465452 if not iterable (lolims ):
54475453 lolims = np .asarray ([lolims ]* len (x ), bool )
@@ -5489,6 +5495,9 @@ def xywhere(xs, ys, mask):
54895495 plot_kw ['mew' ]= kwargs ['mew' ]
54905496 if 'transform' in kwargs :
54915497 plot_kw ['transform' ] = kwargs ['transform' ]
5498+ if 'zorder' in kwargs :
5499+ plot_kw ['zorder' ] = kwargs ['zorder' ]
5500+
54925501
54935502 if xerr is not None :
54945503 if (iterable (xerr ) and len (xerr )== 2 and
0 commit comments