8000 Merge pull request #7758 from lspvic/doc-barh-align · matplotlib/matplotlib@c4b655b · GitHub
[go: up one dir, main page]

Skip to content

Commit c4b655b

Browse files
committed
Merge pull request #7758 from lspvic/doc-barh-align
DOC: fix Axes.barh default alignment option
1 parent f964bcd commit c4b655b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/matplotlib/axes/_axes.py

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

0 commit comments

Comments
 (0)
0