diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index f6a4ebfdc7c6..c55f77811859 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -3875,7 +3875,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, control is provided by the *flierprops* parameter. vert : bool, optional - .. deprecated:: 3.10 + .. deprecated:: 3.11 Use *orientation* instead. If this is given during the deprecation period, it overrides @@ -4222,7 +4222,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=None, The default is ``0.5*(width of the box)``, see *widths*. vert : bool, optional - .. deprecated:: 3.10 + .. deprecated:: 3.11 Use *orientation* instead. If this is given during the deprecation period, it overrides @@ -4361,9 +4361,9 @@ def merge_kw_rc(subkey, explicit, zdelta=0, usemarker=True): vert = mpl.rcParams['boxplot.vertical'] else: _api.warn_deprecated( - "3.10", + "3.11", name="vert: bool", - alternative="orientation: {'vertical', 'horizontal'}" + alternative="orientation: {'vertical', 'horizontal'}", ) if vert is False: orientation = 'horizontal' @@ -8642,10 +8642,10 @@ def violin(self, vpstats, positions=None, vert=None, # vert takes precedence. if vert is not None: _api.warn_deprecated( - "3.10", + "3.11", name="vert: bool", - alternative="orientation: {'vertical', 'horizontal'}" - ) + alternative="orientation: {'vertical', 'horizontal'}", + ) orientation = 'vertical' if vert else 'horizontal' _api.check_in_list(['horizontal', 'vertical'], orientation=orientation) diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py index e3a59a1751ab..62eb491aa4bb 100644 --- a/lib/matplotlib/tests/test_axes.py +++ b/lib/matplotlib/tests/test_axes.py @@ -9314,7 +9314,7 @@ def test_violinplot_orientation(fig_test, fig_ref): # Deprecation of `vert: bool` keyword with pytest.warns(mpl.MatplotlibDeprecationWarning, - match='vert: bool was deprecated in Matplotlib 3.10'): + match='vert: bool was deprecated in Matplotlib 3.11'): # Compare images between a figure that # uses vert and one that uses orientation. ax_ref = fig_ref.subplots()