Skip to content

Commit 41650b0

Browse files
committed
Docstring wording
1 parent dfcd52f commit 41650b0

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3078,13 +3078,14 @@ def grouped_bar(self, heights, *, positions=None, group_spacing=1.5, bar_spacing
30783078
This function is new in v3.11, and the API is still provisional.
30793079
We may still fine-tune some aspects based on user-feedback.
30803080
3081-
Grouped bar charts visualize a collection of multiple categorical datasets.
3082-
A categorical dataset is a mapping *name* -> *value*. The values of the
3083-
dataset are represented by a sequence of bars of the same color.
3084-
In a grouped bar chart, the bars of all datasets are grouped together by
3085-
category. The category names are drawn as tick labels next to the bar group.
3086-
Each dataset has a distinct bar color, and can optionally get a label that
3087-
is used for the legend.
3081+
Grouped bar charts visualize a collection of categorical datasets. The
3082+
categories (i.e. names of the individual values) are the same across all
3083+
datasets. They are typically string names but can also be other discrete
3084+
values such as dates or integer indices. The values of each dataset are
3085+
represented by a sequence of bars of the same color. The bars of all
3086+
datasets are grouped together by their shared categories. The category names
3087+
are drawn as the tick labels for each bar group. Each dataset has a distinct
3088+
bar color, and can optionally get a label that is used for the legend.
30883089
30893090
Example:
30903091

0 commit comments

Comments
 (0)