Skip to content

Fix errorbar zorder v1.2 #1628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 2, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
first pass at getting fixing Issue #1622
  • Loading branch information
tacaswell committed Dec 30, 2012
commit aa476d871f62b9b30a27f7d198378b4f439522b8
11 changes: 10 additions & 1 deletion lib/matplotlib/axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down