Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 84464dd

Browse filesBrowse files
authored
Merge pull request #29155 from ksunden/delay_warn_vert
Delay warning for deprecated parameter 'vert' of box and violin
2 parents 6ecda9c + f5e81a5 commit 84464dd
Copy full SHA for 84464dd

File tree

Expand file treeCollapse file tree

2 files changed

+8
-8
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+8
-8
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3875,7 +3875,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None,
38753875
control is provided by the *flierprops* parameter.
38763876
38773877
vert : bool, optional
3878-
.. deprecated:: 3.10
3878+
.. deprecated:: 3.11
38793879
Use *orientation* instead.
38803880
38813881
If this is given during the deprecation period, it overrides
@@ -4222,7 +4222,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=None,
42224222
The default is ``0.5*(width of the box)``, see *widths*.
42234223
42244224
vert : bool, optional
4225-
.. deprecated:: 3.10
4225+
.. deprecated:: 3.11
42264226
Use *orientation* instead.
42274227
42284228
If this is given during the deprecation period, it overrides
@@ -4361,9 +4361,9 @@ def merge_kw_rc(subkey, explicit, zdelta=0, usemarker=True):
43614361
vert = mpl.rcParams['boxplot.vertical']
43624362
else:
43634363
_api.warn_deprecated(
4364-
"3.10",
4364+
"3.11",
43654365
name="vert: bool",
4366-
alternative="orientation: {'vertical', 'horizontal'}"
4366+
alternative="orientation: {'vertical', 'horizontal'}",
43674367
)
43684368
if vert is False:
43694369
orientation = 'horizontal'
@@ -8642,10 +8642,10 @@ def violin(self, vpstats, positions=None, vert=None,
86428642
# vert takes precedence.
86438643
if vert is not None:
86448644
_api.warn_deprecated(
8645-
"3.10",
8645+
"3.11",
86468646
name="vert: bool",
8647-
alternative="orientation: {'vertical', 'horizontal'}"
8648-
)
8647+
alternative="orientation: {'vertical', 'horizontal'}",
8648+
)
86498649
orientation = 'vertical' if vert else 'horizontal'
86508650
_api.check_in_list(['horizontal', 'vertical'], orientation=orientation)
86518651

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9314,7 +9314,7 @@ def test_violinplot_orientation(fig_test, fig_ref):
93149314

93159315
# Deprecation of `vert: bool` keyword
93169316
with pytest.warns(mpl.MatplotlibDeprecationWarning,
9317-
match='vert: bool was deprecated in Matplotlib 3.10'):
9317+
match='vert: bool was deprecated in Matplotlib 3.11'):
93189318
# Compare images between a figure that
93199319
# uses vert and one that uses orientation.
93209320
ax_ref = fig_ref.subplots()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.