Skip to content

Commit ff2c669

Browse files
committed
Fix typing and doc
1 parent 9726e24 commit ff2c669

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

doc/api/pyplot_summary.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Basic
6161
bar
6262
barh
6363
bar_label
64+
grouped_bar
6465
stem
6566
eventplot
6667
pie

galleries/examples/lines_bars_and_markers/grouped_bar_chart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
# Case 1b: multiple datasets as dict
4343
# ----------------------------------
4444
# instead of carrying a list of datasets and a list of dataset labels, users may
45-
# want to organized their datasets in a dict.
45+
# want to organize their datasets in a dict.
4646

4747
datasets = {
4848
'data1': data1,
@@ -150,7 +150,7 @@
150150
# -------
151151
# The bars can be styled through additional keyword arguments. Currently,
152152
# the only per-dataset setting is ``colors``. Additionally, all
153-
# `.Rectangle parameters` are passed through and applied to all datasets.
153+
# `.Rectangle` parameters are passed through and applied to all datasets.
154154

155155
x = ['A', 'B', 'C']
156156
data = {

lib/matplotlib/axes/_axes.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ class Axes(_AxesBase):
282282
def grouped_bar(
283283
self,
284284
x : ArrayLike,
285-
heights : ArrayLike,
285+
heights : Sequence[ArrayLike] | dict[str, ArrayLike] | np.ndarray,
286286
*,
287287
group_spacing : float | None = ...,
288288
bar_spacing : float | None = ...,

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3392,7 +3392,7 @@ def grid(
33923392
@_copy_docstring_and_deprecators(Axes.grouped_bar)
33933393
def grouped_bar(
33943394
x: ArrayLike,
3395-
heights: ArrayLike,
3395+
heights: Sequence[ArrayLike] | dict[str, ArrayLike] | np.ndarray,
33963396
*,
33973397
group_spacing: float | None = 1.5,
33983398
bar_spacing: float | None = 0,

0 commit comments

Comments
 (0)