@@ -3100,7 +3100,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
3100
3100
showbox = None , showfliers = None , boxprops = None ,
3101
3101
labels = None , flierprops = None , medianprops = None ,
3102
3102
meanprops = None , capprops = None , whiskerprops = None ,
3103
- manage_xticks = True , autorange = False ):
3103
+ manage_xticks = True , autorange = False , zorder = None ):
3104
3104
"""
3105
3105
Make a box and whisker plot.
3106
3106
@@ -3113,7 +3113,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
3113
3113
showbox=True, showfliers=True, boxprops=None,
3114
3114
labels=None, flierprops=None, medianprops=None,
3115
3115
meanprops=None, capprops=None, whiskerprops=None,
3116
- manage_xticks=True, autorange=False):
3116
+ manage_xticks=True, autorange=False, zorder=None ):
3117
3117
3118
3118
Make a box and whisker plot for each column of ``x`` or each
3119
3119
vector in sequence ``x``. The box extends from the lower to
@@ -3225,6 +3225,9 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
3225
3225
``shownotches`` is also True. Otherwise, means will be shown
3226
3226
as points.
3227
3227
3228
+ zorder : scalar, optional (None)
3229
+ Sets the zorder of the boxplot.
3230
+
3228
3231
Other Parameters
3229
3232
----------------
3230
3233
The following boolean options toggle the drawing of individual
@@ -3395,15 +3398,15 @@ def _update_dict(dictionary, rc_name, properties):
3395
3398
medianprops = medianprops , meanprops = meanprops ,
3396
3399
meanline = meanline , showfliers = showfliers ,
3397
3400
capprops = capprops , whiskerprops = whiskerprops ,
3398
- manage_xticks = manage_xticks )
3401
+ manage_xticks = manage_xticks , zorder = zorder )
3399
3402
return artists
3400
3403
3401
3404
def bxp (self , bxpstats , positions = None , widths = None , vert = True ,
3402
3405
patch_artist = False , shownotches = False , showmeans = False ,
3403
3406
showcaps = True , showbox = True , showfliers = True ,
3404
3407
boxprops = None , whiskerprops = None , flierprops = None ,
3405
3408
medianprops = None , capprops = None , meanprops = None ,
3406
- meanline = False , manage_xticks = True ):
3409
+ meanline = False , manage_xticks = True , zorder = None ):
3407
3410
"""
3408
3411
Drawing function for box and whisker plots.
3409
3412
@@ -3414,7 +3417,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
3414
3417
showcaps=True, showbox=True, showfliers=True,
3415
3418
boxprops=None, whiskerprops=None, flierprops=None,
3416
3419
medianprops=None, capprops=None, meanprops=None,
3417
- meanline=False, manage_xticks=True):
3420
+ meanline=False, manage_xticks=True, zorder=None ):
3418
3421
3419
3422
Make a box and whisker plot for each column of *x* or each
3420
3423
vector in sequence *x*. The box extends from the lower to
@@ -3518,6 +3521,9 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
3518
3521
manage_xticks : bool, default = True
3519
3522
If the function should adjust the xlim and xtick locations.
3520
3523
3524
+ zorder : scalar, default = None
3525
+ The zorder of the resulting boxplot
3526
+
3521
3527
Returns
3522
3528
-------
3523
3529
result : dict
@@ -3560,7 +3566,10 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
3560
3566
# empty list of xticklabels
3561
3567
datalabels = []
3562
3568
3563
- zorder = mlines .Line2D .zorder
3569
+ # Use default zorder if none specified
3570
+ if zorder is None :
3571
+ zorder = mlines .Line2D .zorder
3572
+
3564
3573
zdelta = 0.1
3565
3574
# box properties
3566
3575
if patch_artist :
0 commit comments