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

Skip to content

Commit 6af7702

Browse files
committed
fix barh align docstr as bar
1 parent 3ececb5 commit 6af7702

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
@@ -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
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 bars) and
2264+
by their bottom edges (for horizontal bars). If 'center', interpret
2265+
the `bottom` argument as the coordinates of the centers of the bars.
2266+
To align on the align bars on the top edge pass a negative
2267+
`height`.
22662268
22672269
log : boolean, optional, default: False
22682270
If true, sets the axis to be log scale

0 commit comments

Comments
 (0)