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 6da2b8c

Browse filesBrowse files
authored
Merge pull request #8707 from amueller/patch-1
Added default value of align to bar an barh
2 parents 02477de + 372f296 commit 6da2b8c
Copy full SHA for 6da2b8c

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,7 +1893,7 @@ def bar(self, left, height, width=0.8, bottom=None, **kwargs):
18931893
dictionary of kwargs to be passed to errorbar method. *ecolor* and
18941894
*capsize* may be specified here rather than as independent kwargs.
18951895
1896-
align : {'center', 'edge'}, optional
1896+
align : {'center', 'edge'}, optional, default: 'center'
18971897
If 'edge', aligns bars by their left edges (for vertical bars) and
18981898
by their bottom edges (for horizontal bars). If 'center', interpret
18991899
the `left` argument as the coordinates of the centers of the bars.
@@ -2216,7 +2216,7 @@ def barh(self, bottom, width, height=0.8, left=None, **kwargs):
22162216
dictionary of kwargs to be passed to errorbar method. `ecolor` and
22172217
`capsize` may be specified here rather than as independent kwargs.
22182218
2219-
align : {'center', 'edge'}, optional
2219+
align : {'center', 'edge'}, optional, default: 'center'
22202220
If 'edge', aligns bars by their left edges (for vertical
22212221
bars) and by their bottom edges (for horizontal bars). If
22222222
'center', interpret the `bottom` argument as the

0 commit comments

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