Skip to content
Merged
Changes from all commits
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
10 changes: 9 additions & 1 deletion lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3537,6 +3537,8 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
'dotted': ':'
}

zorder = mlines.Line2D.zorder
zdelta = 0.1
# box properties
if patch_artist:
final_boxprops = dict(
Expand All @@ -3553,6 +3555,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
color=rcParams['boxplot.boxprops.color'],
)

final_boxprops['zorder'] = zorder
if boxprops is not None:
final_boxprops.update(boxprops)

Expand All @@ -3569,9 +3572,11 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
color=rcParams['boxplot.capprops.color'],
)

final_capprops['zorder'] = zorder
if capprops is not None:
final_capprops.update(capprops)

final_whiskerprops['zorder'] = zorder
if whiskerprops is not None:
final_whiskerprops.update(whiskerprops)

Expand All @@ -3586,6 +3591,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
markersize=rcParams['boxplot.flierprops.markersize'],
)

final_flierprops['zorder'] = zorder
# flier (outlier) properties
if flierprops is not None:
final_flierprops.update(flierprops)
Expand All @@ -3596,6 +3602,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
linewidth=rcParams['boxplot.medianprops.linewidth'],
color=rcParams['boxplot.medianprops.color'],
)
final_medianprops['zorder'] = zorder + zdelta
if medianprops is not None:
final_medianprops.update(medianprops)

Expand All @@ -3614,13 +3621,14 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
markeredgecolor=rcParams['boxplot.meanprops.markeredgecolor'],
markersize=rcParams['boxplot.meanprops.markersize'],
)
final_meanprops['zorder'] = zorder + zdelta
if meanprops is not None:
final_meanprops.update(meanprops)

def to_vc(xs, ys):
# convert arguments to verts and codes
verts = []
#codes = []

for xi, yi in zip(xs, ys):
verts.append((xi, yi))
verts.append((0, 0)) # ignored
Expand Down
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