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

Function bar_label

lib/matplotlib/pyplot.py:3180–3196  ·  view source on GitHub ↗
(
    container: BarContainer,
    labels: ArrayLike | None = None,
    *,
    fmt: str | Callable[[float], str] = "%g",
    label_type: Literal["center", "edge"] = "edge",
    padding: float | ArrayLike = 0,
    **kwargs,
)

Source from the content-addressed store, hash-verified

3178# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
3179@_copy_docstring_and_deprecators(Axes.bar_label)
3180def bar_label(
3181 container: BarContainer,
3182 labels: ArrayLike | None = None,
3183 *,
3184 fmt: str | Callable[[float], str] = "%g",
3185 label_type: Literal["center", "edge"] = "edge",
3186 padding: float | ArrayLike = 0,
3187 **kwargs,
3188) -> list[Annotation]:
3189 return gca().bar_label(
3190 container,
3191 labels=labels,
3192 fmt=fmt,
3193 label_type=label_type,
3194 padding=padding,
3195 **kwargs,
3196 )
3197
3198
3199# Autogenerated by boilerplate.py. Do not edit as changes will be lost.

Callers

nothing calls this directly

Calls 2

gcaFunction · 0.85
bar_labelMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…