8000 make violin's orientation default to vertical · matplotlib/matplotlib@bb34576 · GitHub
[go: up one dir, main page]

Skip to content

Commit bb34576

Browse files
committed
make violin's orientation default to vertical
1 parent f2b91b5 commit bb34576

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8371,7 +8371,7 @@ def violinplot(self, dataset, positions=None, vert=None,
83718371
The positions of the violins; i.e. coordinates on the x-axis for
83728372
vertical violins (or y-axis for horizontal violins).
83738373
8374-
vert : bool, default: True.
8374+
vert : bool, optional
83758375
.. deprecated:: 3.10
83768376
Use *orientation* instead.
83778377
@@ -8476,7 +8476,7 @@ def _kde_method(X, coords):
84768476

84778477
@_api.make_keyword_only("3.9", "vert")
84788478
def violin(self, vpstats, positions=None, vert=None,
8479-
orientation=None, widths=0.5, showmeans=False,
8479+
orientation='vertical', widths=0.5, showmeans=False,
84808480
showextrema=True, showmedians=False, side='both'):
84818481
"""
84828482
Draw a violin plot from pre-computed statistics.
@@ -8515,7 +8515,7 @@ def violin(self, vpstats, positions=None, vert=None,
85158515
The positions of the violins; i.e. coordinates on the x-axis for
85168516
vertical violins (or y-axis for horizontal violins).
85178517
8518-
vert : bool, default: True.
8518+
vert : bool, optional
85198519
.. deprecated:: 3.10
85208520
Use *orientation* instead.
85218521

lib/matplotlib/axes/_axes.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ class Axes(_AxesBase):
760760
positions: ArrayLike | None = ...,
761761
*,
762762
vert: bool | None = ...,
763-
orientation: Literal["vertical", "horizontal"] | None = ...,
763+
orientation: Literal["vertical", "horizontal"] = ...,
764764
widths: float | ArrayLike = ...,
765765
showmeans: bool = ...,
766766
showextrema: bool = ...,

0 commit comments

Comments
 (0)
0