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

Function hist

lib/matplotlib/pyplot.py:3637–3679  ·  view source on GitHub ↗
(
    x: ArrayLike | Sequence[ArrayLike],
    bins: int | Sequence[float] | str | None = None,
    range: tuple[float, float] | None = None,
    density: bool = False,
    weights: ArrayLike | None = None,
    cumulative: bool | float = False,
    bottom: ArrayLike | float | None = None,
    histtype: Literal["bar", "barstacked", "step", "stepfilled"] = "bar",
    align: Literal["left", "mid", "right"] = "mid",
    orientation: Literal["vertical", "horizontal"] = "vertical",
    rwidth: float | None = None,
    log: bool = False,
    color: ColorType | Sequence[ColorType] | None = None,
    label: str | Sequence[str] | None = None,
    stacked: bool = False,
    *,
    data: DataParamType = None,
    **kwargs,
)

Source from the content-addressed store, hash-verified

3635# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
3636@_copy_docstring_and_deprecators(Axes.hist)
3637def hist(
3638 x: ArrayLike | Sequence[ArrayLike],
3639 bins: int | Sequence[float] | str | None = None,
3640 range: tuple[float, float] | None = None,
3641 density: bool = False,
3642 weights: ArrayLike | None = None,
3643 cumulative: bool | float = False,
3644 bottom: ArrayLike | float | None = None,
3645 histtype: Literal["bar", "barstacked", "step", "stepfilled"] = "bar",
3646 align: Literal["left", "mid", "right"] = "mid",
3647 orientation: Literal["vertical", "horizontal"] = "vertical",
3648 rwidth: float | None = None,
3649 log: bool = False,
3650 color: ColorType | Sequence[ColorType] | None = None,
3651 label: str | Sequence[str] | None = None,
3652 stacked: bool = False,
3653 *,
3654 data: DataParamType = None,
3655 **kwargs,
3656) -> tuple[
3657 np.ndarray | list[np.ndarray],
3658 np.ndarray,
3659 BarContainer | Polygon | list[BarContainer | Polygon],
3660]:
3661 return gca().hist(
3662 x,
3663 bins=bins,
3664 range=range,
3665 density=density,
3666 weights=weights,
3667 cumulative=cumulative,
3668 bottom=bottom,
3669 histtype=histtype,
3670 align=align,
3671 orientation=orientation,
3672 rwidth=rwidth,
3673 log=log,
3674 color=color,
3675 label=label,
3676 stacked=stacked,
3677 **({"data": data} if data is not None else {}),
3678 **kwargs,
3679 )
3680
3681
3682# Autogenerated by boilerplate.py. Do not edit as changes will be lost.

Callers

nothing calls this directly

Calls 2

gcaFunction · 0.85
histMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…