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 eba130f

Browse filesBrowse files
authored
Merge pull request #7758 from lspvic/doc-barh-align
DOC: fix Axes.barh default alignment option
2 parents 115bade + 3be512a commit eba130f
Copy full SHA for eba130f

File tree

Expand file treeCollapse file tree

1 file changed

+6
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-4
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,10 +2259,12 @@ def barh(self, bottom, width, height=0.8, left=None, **kwargs):
22592259
dictionary of kwargs to be passed to errorbar method. `ecolor` and
22602260
`capsize` may be specified here rather than as independent kwargs.
22612261
2262-
align : ['edge' | 'center'], optional, default: 'edge'
2263-
If `edge`, aligns bars by their left edges (for vertical bars) and
2264-
by their bottom edges (for horizontal bars). If `center`, interpret
2265-
the `left` argument as the coordinates of the centers of the bars.
2262+
align : {'center', 'edge'}, optional
2263+
If 'edge', aligns bars by their left edges (for vertical
2264+
bars) and by their bottom edges (for horizontal bars). If
2265+
'center', interpret the `bottom` argument as the
2266+
coordinates of the centers of the bars. To align on the
2267+
align bars on the top edge pass a negative 'height'.
22662268
22672269
log : boolean, optional, default: False
22682270
If true, sets the axis to be log scale

0 commit comments

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