@@ -3095,7 +3095,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
30953095 showbox = None , showfliers = None , boxprops = None ,
30963096 labels = None , flierprops = None , medianprops = None ,
30973097 meanprops = None , capprops = None , whiskerprops = None ,
3098- manage_xticks = True , autorange = False , zorder = 2 ):
3098+ manage_xticks = True , autorange = False , zorder = None ):
30993099 """
31003100 Make a box and whisker plot.
31013101
@@ -3108,7 +3108,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
31083108 showbox=True, showfliers=True, boxprops=None,
31093109 labels=None, flierprops=None, medianprops=None,
31103110 meanprops=None, capprops=None, whiskerprops=None,
3111- manage_xticks=True, autorange=False, zorder=2 ):
3111+ manage_xticks=True, autorange=False, zorder=None ):
31123112
31133113 Make a box and whisker plot for each column of ``x`` or each
31143114 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,
32203220 ``shownotches`` is also True. Otherwise, means will be shown
32213221 as points.
32223222
3223- zorder : scalar, optional (2 )
3223+ zorder : scalar, optional (None )
32243224 Sets the zorder of the boxplot.
32253225
32263226 Other Parameters
@@ -3401,7 +3401,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
34013401 showcaps = True , showbox = True , showfliers = True ,
34023402 boxprops = None , whiskerprops = None , flierprops = None ,
34033403 medianprops = None , capprops = None , meanprops = None ,
3404- meanline = False , manage_xticks = True , zorder = 2 ):
3404+ meanline = False , manage_xticks = True , zorder = None ):
34053405 """
34063406 Drawing function for box and whisker plots.
34073407
@@ -3412,7 +3412,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
34123412 showcaps=True, showbox=True, showfliers=True,
34133413 boxprops=None, whiskerprops=None, flierprops=None,
34143414 medianprops=None, capprops=None, meanprops=None,
3415- meanline=False, manage_xticks=True, zorder=2 ):
3415+ meanline=False, manage_xticks=True, zorder=None ):
34163416
34173417 Make a box and whisker plot for each column of *x* or each
34183418 vector in sequence *x*. The box extends from the lower to
@@ -3516,7 +3516,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
35163516 manage_xticks : bool, default = True
35173517 If the function should adjust the xlim and xtick locations.
35183518
3519- zorder : scalar, default = 2
3519+ zorder : scalar, default = None
35203520 The zorder of the resulting boxplot
35213521
35223522 Returns
@@ -3561,6 +3561,10 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
35613561 # empty list of xticklabels
35623562 datalabels = []
35633563
3564+ # Use default zorder if none specified
3565+ if zorder is None :
3566+ zorder = mlines .Line2D .zorder
3567+
35643568 zdelta = 0.1
35653569 # box properties
35663570 if patch_artist :
0 commit comments