@@ -3878,7 +3878,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None,
38783878 the fliers. If `None`, then the fliers default to 'b+'. More
38793879 control is provided by the *flierprops* parameter.
38803880
3881- vert : bool, default: :rc:`boxplot.vertical`
3881+ vert : bool, optional
38823882 .. deprecated:: 3.10
38833883 Use *orientation* instead.
38843884
@@ -4060,8 +4060,6 @@ def boxplot(self, x, notch=None, sym=None, vert=None,
40604060 labels = tick_labels , autorange = autorange )
40614061 if notch is None :
40624062 notch = mpl .rcParams ['boxplot.notch' ]
4063- if vert is None :
4064- vert = mpl .rcParams ['boxplot.vertical' ]
40654063 if patch_artist is None :
40664064 patch_artist = mpl .rcParams ['boxplot.patchartist' ]
40674065 if meanline is None :
@@ -4227,7 +4225,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=None,
42274225 Either a scalar or a vector and sets the width of each cap.
42284226 The default is ``0.5*(width of the box)``, see *widths*.
42294227
4230- vert : bool, default: True
4228+ vert : bool, optional
42314229 .. deprecated:: 3.10
42324230 Use *orientation* instead.
42334231
@@ -4303,6 +4301,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=None,
43034301 --------
43044302 boxplot : Draw a boxplot from data instead of pre-computed statistics.
43054303 """
4304+
43064305 # Clamp median line to edge of box by default.
43074306 medianprops = {
43084307 "solid_capstyle" : "butt" ,
@@ -4361,14 +4360,17 @@ def merge_kw_rc(subkey, explicit, zdelta=0, usemarker=True):
43614360 mean_kw [removed_prop ] = ''
43624361
43634362 # vert and orientation parameters are linked until vert's
4364- # deprecation period expires. vert only takes precedence and
4365- # raises a deprecation warning if set to False.
4366- if vert is False :
4363+ # deprecation period expires. vert only takes precedence
4364+ # if set to False.
4365+ if vert is None :
4366+ vert = mpl .rcParams ['boxplot.vertical' ]
4367+ else :
43674368 _api .warn_deprecated (
43684369 "3.10" ,
43694370 name = "vert: bool" ,
43704371 alternative = "orientation: {'vertical', 'horizontal'}"
4371- )
4372+ )
4373+ if vert is False :
43724374 orientation = 'horizontal'
43734375 _api .check_in_list (['horizontal' , 'vertical' ], orientation = orientation )
43744376
0 commit comments