Skip to content

Commit 2e0660a

Browse files
committed
Change signature to grouped_bar(heights, *, positions=None,
tick_labels=None, labels=None, ...)
1 parent b71c387 commit 2e0660a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

lib/matplotlib/axes/_axes.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ from typing import Any, Literal, overload
3939
import numpy as np
4040
from numpy.typing import ArrayLike
4141
from matplotlib.typing import ColorType, MarkerType, LineStyleType
42+
import pandas as pd
4243

4344

4445
class _GroupedBarReturn:
@@ -286,12 +287,13 @@ class Axes(_AxesBase):
286287
) -> PolyCollection: ...
287288
def grouped_bar(
288289
self,
289-
x : ArrayLike,
290290
heights : Sequence[ArrayLike] | dict[str, ArrayLike] | np.ndarray,
291291
*,
292+
positions : ArrayLike | None = ...,
293+
tick_labels : Sequence[str] | None = ...,
294+
labels : Sequence[str] | None = ...,
292295
group_spacing : float | None = ...,
293296
bar_spacing : float | None = ...,
294-
labels : Sequence[str] | None = ...,
295297
orientation: Literal["vertical", "horizontal"] = ...,
296298
colors: Iterable[ColorType] | None = ...,
297299
**kwargs

lib/matplotlib/pyplot.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3391,21 +3391,23 @@ def grid(
33913391
# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
33923392
@_copy_docstring_and_deprecators(Axes.grouped_bar)
33933393
def grouped_bar(
3394-
x: ArrayLike,
33953394
heights: Sequence[ArrayLike] | dict[str, ArrayLike] | np.ndarray,
33963395
*,
3396+
positions: ArrayLike | None = None,
33973397
group_spacing: float | None = 1.5,
33983398
bar_spacing: float | None = 0,
3399+
tick_labels: Sequence[str] | None = None,
33993400
labels: Sequence[str] | None = None,
34003401
orientation: Literal["vertical", "horizontal"] = "vertical",
34013402
colors: Iterable[ColorType] | None = None,
34023403
**kwargs,
34033404
) -> list[BarContainer]:
34043405
return gca().grouped_bar(
3405-
x,
34063406
heights,
3407+
positions=positions,
34073408
group_spacing=group_spacing,
34083409
bar_spacing=bar_spacing,
3410+
tick_labels=tick_labels,
34093411
labels=labels,
34103412
orientation=orientation,
34113413
colors=colors,

0 commit comments

Comments
 (0)