Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae4b510

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.

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)