Skip to content

Commit a61e592

Browse files
timhoffmrcomer
andauthored
Update lib/matplotlib/axes/_axes.py
Co-authored-by: Ruth Comer <[email protected]>
1 parent 3f08f38 commit a61e592

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2714,9 +2714,9 @@ def barh(self, y, width, height=0.8, left=None, *, align="center",
27142714
27152715
Bars are often used for categorical data, i.e. string labels below
27162716
the bars. You can provide a list of strings directly to *y*.
2717-
``bar(['A', 'B', 'C'], [1, 2, 3])`` is often a shorter and more
2717+
``barh(['A', 'B', 'C'], [1, 2, 3])`` is often a shorter and more
27182718
convenient notation compared to
2719-
``bar(range(3), [1, 2, 3], tick_label=['A', 'B', 'C'])``. They are
2719+
``barh(range(3), [1, 2, 3], tick_label=['A', 'B', 'C'])``. They are
27202720
equivalent as long as the names are unique. The explicit *tick_label*
27212721
notation draws the names in the sequence given. However, when having
27222722
duplicate values in categorical *y* data, these values map to the same

0 commit comments

Comments
 (0)