@@ -3876,9 +3876,10 @@ def boxplot(self, x, notch=None, sym=None, vert=None,
3876
3876
3877
3877
vert : bool, optional
3878
3878
.. deprecated:: 3.11
3879
- Use of *vert* is discouraged in 3.10 with formal deprecation set
3880
- for 3.11. Use *orientation* instead.
3879
+ Use *orientation* instead.
3881
3880
3881
+ This is a pending deprecation for 3.10, with full deprecation
3882
+ in 3.11 and removal in 3.13.
3882
3883
If this is given during the deprecation period, it overrides
3883
3884
the *orientation* parameter.
3884
3885
@@ -4224,9 +4225,10 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=None,
4224
4225
4225
4226
vert : bool, optional
4226
4227
.. deprecated:: 3.11
4227
- Use of *vert* is discouraged in 3.10 with formal deprecation
4228
- set for 3.11. Use *orientation* instead.
4228
+ Use *orientation* instead.
4229
4229
4230
+ This is a pending deprecation for 3.10, with full deprecation
4231
+ in 3.11 and removal in 3.13.
4230
4232
If this is given during the deprecation period, it overrides
4231
4233
the *orientation* parameter.
4232
4234
@@ -4361,6 +4363,13 @@ def merge_kw_rc(subkey, explicit, zdelta=0, usemarker=True):
4361
4363
# if set to False.
4362
4364
if vert is None :
4363
4365
vert = mpl .rcParams ['boxplot.vertical' ]
4366
+ else :
4367
+ _api .warn_deprecated (
4368
+ "3.11" ,
4369
+ name = "vert: bool" ,
4370
+ alternative = "orientation: {'vertical', 'horizontal'}" ,
4371
+ pending = True ,
4372
+ )
4364
4373
if vert is False :
4365
4374
orientation = 'horizontal'
4366
4375
_api .check_in_list (['horizontal' , 'vertical' ], orientation = orientation )
@@ -8637,6 +8646,12 @@ def violin(self, vpstats, positions=None, vert=None,
8637
8646
# deprecation period expires. If both are selected,
8638
8647
# vert takes precedence.
8639
8648
if vert is not None :
8649
+ _api .warn_deprecated (
8650
+ "3.11" ,
8651
+ name = "vert: bool" ,
8652
+ alternative = "orientation: {'vertical', 'horizontal'}" ,
8653
+ pending = True ,
8654
+ )
8640
8655
orientation = 'vertical' if vert else 'horizontal'
8641
8656
_api .check_in_list (['horizontal' , 'vertical' ], orientation = orientation )
8642
8657
0 commit comments