MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / grouped_bar

Function grouped_bar

lib/matplotlib/pyplot.py:3557–3579  ·  view source on GitHub ↗
(
    heights: Sequence[ArrayLike] | dict[str, ArrayLike] | np.ndarray | pd.DataFrame,
    *,
    positions: ArrayLike | None = None,
    group_spacing: float | None = 1.5,
    bar_spacing: float | None = 0,
    tick_labels: Sequence[str] | None = None,
    labels: Sequence[str] | None = None,
    orientation: Literal["vertical", "horizontal"] = "vertical",
    colors: Iterable[ColorType] | None = None,
    **kwargs,
)

Source from the content-addressed store, hash-verified

3555# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
3556@_copy_docstring_and_deprecators(Axes.grouped_bar)
3557def grouped_bar(
3558 heights: Sequence[ArrayLike] | dict[str, ArrayLike] | np.ndarray | pd.DataFrame,
3559 *,
3560 positions: ArrayLike | None = None,
3561 group_spacing: float | None = 1.5,
3562 bar_spacing: float | None = 0,
3563 tick_labels: Sequence[str] | None = None,
3564 labels: Sequence[str] | None = None,
3565 orientation: Literal["vertical", "horizontal"] = "vertical",
3566 colors: Iterable[ColorType] | None = None,
3567 **kwargs,
3568) -> list[BarContainer]:
3569 return gca().grouped_bar(
3570 heights,
3571 positions=positions,
3572 group_spacing=group_spacing,
3573 bar_spacing=bar_spacing,
3574 tick_labels=tick_labels,
3575 labels=labels,
3576 orientation=orientation,
3577 colors=colors,
3578 **kwargs,
3579 )
3580
3581
3582# Autogenerated by boilerplate.py. Do not edit as changes will be lost.

Callers

nothing calls this directly

Calls 2

gcaFunction · 0.85
grouped_barMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…