@@ -3095,7 +3095,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
3095
3095
showbox = None , showfliers = None , boxprops = None ,
3096
3096
labels = None , flierprops = None , medianprops = None ,
3097
3097
meanprops = None , capprops = None , whiskerprops = None ,
3098
- manage_xticks = True , autorange = False , zorder = 2 ):
3098
+ manage_xticks = True , autorange = False , zorder = None ):
3099
3099
"""
3100
3100
Make a box and whisker plot.
3101
3101
@@ -3108,7 +3108,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
3108
3108
showbox=True, showfliers=True, boxprops=None,
3109
3109
labels=None, flierprops=None, medianprops=None,
3110
3110
meanprops=None, capprops=None, whiskerprops=None,
3111
- manage_xticks=True, autorange=False, zorder=2 ):
3111
+ manage_xticks=True, autorange=False, zorder=None ):
3112
3112
3113
3113
Make a box and whisker plot for each column of ``x`` or each
3114
3114
vector in sequence ``x``. The box extends from the lower to
@@ -3220,7 +3220,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
3220
3220
``shownotches`` is also True. Otherwise, means will be shown
3221
3221
as points.
3222
3222
3223
- zorder : scalar, optional (2 )
3223
+ zorder : scalar, optional (None )
3224
3224
Sets the zorder of the boxplot.
3225
3225
3226
3226
Other Parameters
@@ -3385,6 +3385,10 @@ def _update_dict(dictionary, rc_name, properties):
3385
3385
if ci [1 ] is not None :
3386
3386
stats ['cihi' ] = ci [1 ]
3387
3387
3388
+ # Use default zorder if none specified
3389
+ if zorder is None :
3390
+ zorder = mlines .Line2D .zorder
3391
+
3388
3392
artists = self .bxp (bxpstats , positions = positions , widths = widths ,
3389
3393
vert = vert , patch_artist = patch_artist ,
3390
3394
shownotches = notch , showmeans = showmeans ,
@@ -3412,7 +3416,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
3412
3416
showcaps=True, showbox=True, showfliers=True,
3413
3417
boxprops=None, whiskerprops=None, flierprops=None,
3414
3418
medianprops=None, capprops=None, meanprops=None,
3415
- meanline=False, manage_xticks=True, zorder=2 ):
3419
+ meanline=False, manage_xticks=True, zorder=None ):
3416
3420
3417
3421
Make a box and whisker plot for each column of *x* or each
3418
3422
vector in sequence *x*. The box extends from the lower to
@@ -3516,7 +3520,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
3516
3520
manage_xticks : bool, default = True
3517
3521
If the function should adjust the xlim and xtick locations.
3518
3522
3519
- zorder : scalar, default = 2
3523
+ zorder : scalar, default = None
3520
3524
The zorder of the resulting boxplot
3521
3525
3522
3526
Returns
0 commit comments