@@ -3878,7 +3878,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None,
3878
3878
the fliers. If `None`, then the fliers default to 'b+'. More
3879
3879
control is provided by the *flierprops* parameter.
3880
3880
3881
- vert : bool, default: :rc:`boxplot.vertical`
3881
+ vert : bool, optional
3882
3882
.. deprecated:: 3.10
3883
3883
Use *orientation* instead.
3884
3884
@@ -4060,8 +4060,6 @@ def boxplot(self, x, notch=None, sym=None, vert=None,
4060
4060
labels = tick_labels , autorange = autorange )
4061
4061
if notch is None :
4062
4062
notch = mpl .rcParams ['boxplot.notch' ]
4063
- if vert is None :
4064
- vert = mpl .rcParams ['boxplot.vertical' ]
4065
4063
if patch_artist is None :
4066
4064
patch_artist = mpl .rcParams ['boxplot.patchartist' ]
4067
4065
if meanline is None :
@@ -4227,7 +4225,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=None,
4227
4225
Either a scalar or a vector and sets the width of each cap.
4228
4226
The default is ``0.5*(width of the box)``, see *widths*.
4229
4227
4230
- vert : bool, default: True
4228
+ vert : bool, optional
4231
4229
.. deprecated:: 3.10
4232
4230
Use *orientation* instead.
4233
4231
@@ -4361,14 +4359,17 @@ def merge_kw_rc(subkey, explicit, zdelta=0, usemarker=True):
4361
4359
mean_kw [removed_prop ] = ''
4362
4360
4363
4361
# 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 :
4362
+ # deprecation period expires. vert only takes precedence
4363
+ # if set to False.
4364
+ if vert is None :
4365
+ vert = mpl .rcParams ['boxplot.vertical' ]
4366
+ else :
4367
4367
_api .warn_deprecated (
4368
4368
"3.10" ,
4369
4369
name = "vert: bool" ,
4370
4370
alternative = "orientation: {'vertical', 'horizontal'}"
4371
- )
4371
+ )
4372
+ if vert is False :
4372
4373
orientation = 'horizontal'
4373
4374
_api .check_in_list (['horizontal' , 'vertical' ], orientation = orientation )
4374
4375
0 commit comments