Skip to content

Commit eba130f

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

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/matplotlib/axes/_axes.py

+6-4
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)