@@ -3110,7 +3110,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
3110
3110
showbox = None , showfliers = None , boxprops = None ,
3111
3111
labels = None , flierprops = None , medianprops = None ,
3112
3112
meanprops = None , capprops = None , whiskerprops = None ,
3113
- manage_xticks = True , autorange = False ):
3113
+ manage_xticks = True , autorange = False , zorder = None ):
3114
3114
"""
3115
3115
Make a box and whisker plot.
3116
3116
@@ -3123,7 +3123,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
3123
3123
showbox=True, showfliers=True, boxprops=None,
3124
3124
labels=None, flierprops=None, medianprops=None,
3125
3125
meanprops=None, capprops=None, whiskerprops=None,
3126
- manage_xticks=True, autorange=False):
3126
+ manage_xticks=True, autorange=False, zorder=None ):
3127
3127
3128
3128
Make a box and whisker plot for each column of ``x`` or each
3129
3129
vector in sequence ``x``. The box extends from the lower to
@@ -3235,6 +3235,9 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
3235
3235
``shownotches`` is also True. Otherwise, means will be shown
3236
3236
as points.
3237
3237
3238
+ zorder : scalar, optional (None)
3239
+ Sets the zorder of the boxplot.
3240
+
3238
3241
Other Parameters
3239
3242
----------------
3240
3243
showcaps : bool, optional (True)
@@ -3409,15 +3412,15 @@ def _update_dict(dictionary, rc_name, properties):
3409
3412
medianprops = medianprops , meanprops = meanprops ,
3410
3413
meanline = meanline , showfliers = showfliers ,
3411
3414
capprops = capprops , whiskerprops = whiskerprops ,
3412
- manage_xticks = manage_xticks )
3415
+ manage_xticks = manage_xticks , zorder = zorder )
3413
3416
return artists
3414
3417
3415
3418
def bxp (self , bxpstats , positions = None , widths = None , vert = True ,
3416
3419
patch_artist = False , shownotches = False , showmeans = False ,
3417
3420
showcaps = True , showbox = True , showfliers = True ,
3418
3421
boxprops = None , whiskerprops = None , flierprops = None ,
3419
3422
medianprops = None , capprops = None , meanprops = None ,
3420
- meanline = False , manage_xticks = True ):
3423
+ meanline = False , manage_xticks = True , zorder = None ):
3421
3424
"""
3422
3425
Drawing function for box and whisker plots.
3423
3426
@@ -3428,7 +3431,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
3428
3431
showcaps=True, showbox=True, showfliers=True,
3429
3432
boxprops=None, whiskerprops=None, flierprops=None,
3430
3433
medianprops=None, capprops=None, meanprops=None,
3431
- meanline=False, manage_xticks=True):
3434
+ meanline=False, manage_xticks=True, zorder=None ):
3432
3435
3433
3436
Make a box and whisker plot for each column of *x* or each
3434
3437
vector in sequence *x*. The box extends from the lower to
@@ -3532,6 +3535,9 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
3532
3535
manage_xticks : bool, default = True
3533
3536
If the function should adjust the xlim and xtick locations.
3534
3537
3538
+ zorder : scalar, default = None
3539
+ The zorder of the resulting boxplot
3540
+
3535
3541
Returns
3536
3542
-------
3537
3543
result : dict
@@ -3574,7 +3580,10 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
3574
3580
# empty list of xticklabels
3575
3581
datalabels = []
3576
3582
3577
- zorder = mlines .Line2D .zorder
3583
+ # Use default zorder if none specified
3584
+ if zorder is None :
3585
+ zorder = mlines .Line2D .zorder
3586
+
3578
3587
zdelta = 0.1
3579
3588
# box properties
3580
3589
if patch_artist :
0 commit comments