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

Skip to content

Commit 19b5873

Browse files
committed
make bxp's orientation default to vertical
1 parent dd2eda9 commit 19b5873

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
@@ -4165,7 +4165,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None,
41654165

41664166
@_api.make_keyword_only("3.9", "widths")
41674167
def bxp(self, bxpstats, positions=None, widths=None, vert=None,
4168-
orientation=None, patch_artist=False, shownotches=False,
4168+
orientation='vertical', patch_artist=False, shownotches=False,
41694169
showmeans=False, showcaps=True, showbox=True, showfliers=True,
41704170
boxprops=None, whiskerprops=None, flierprops=None,
41714171
medianprops=None, capprops=None, meanprops=None,

lib/matplotlib/axes/_axes.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ class Axes(_AxesBase):
384384
*,
385385
widths: float | ArrayLike | None = ...,
386386
vert: bool | None = ...,
387-
orientation: Literal["vertical", "horizontal"] | None = ...,
387+
orientation: Literal["vertical", "horizontal"] = ...,
388388
patch_artist: bool = ...,
389389
shownotches: bool = ...,
390390
showmeans: bool = ...,

0 commit comments

Comments
 (0)