Skip to content

Commit 189764e

Browse files
committed
ENH : make sure errorbar respects errorbar
1 parent dd4051e commit 189764e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2667,6 +2667,8 @@ def errorbar(self, x, y, yerr=None, xerr=None,
26672667

26682668
label = kwargs.pop("label", None)
26692669

2670+
zorder = kwargs.pop('zorder', 0)
2671+
26702672
# make sure all the args are iterable; use lists not arrays to
26712673
# preserve units
26722674
if not iterable(x):
@@ -2898,6 +2900,7 @@ def xywhere(xs, ys, mask):
28982900
has_xerr=(xerr is not None),
28992901
has_yerr=(yerr is not None),
29002902
label=label)
2903+
errorbar_container.set_zorder(zorder)
29012904
return self.add_container(errorbar_container)
29022905

29032906
def boxplot(self, x, notch=False, sym=None, vert=True, whis=1.5,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy