Skip to content

Commit

Permalink
make violin's orientation default to vertical
Browse files Browse the repository at this point in the history
  • Loading branch information
saranti committed Apr 20, 2024
1 parent f2b91b5 commit ae4b510
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -8476,7 +8476,7 @@ def _kde_method(X, coords):

@_api.make_keyword_only("3.9", "vert")
def violin(self, vpstats, positions=None, vert=None,
orientation=None, widths=0.5, showmeans=False,
orientation='vertical', widths=0.5, showmeans=False,
showextrema=True, showmedians=False, side='both'):
"""
Draw a violin plot from pre-computed statistics.
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/axes/_axes.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ class Axes(_AxesBase):
positions: ArrayLike | None = ...,
*,
vert: bool | None = ...,
orientation: Literal["vertical", "horizontal"] | None = ...,
orientation: Literal["vertical", "horizontal"] = ...,
widths: float | ArrayLike = ...,
showmeans: bool = ...,
showextrema: bool = ...,
Expand Down

0 comments on commit ae4b510

Please sign in to comment.