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

Function xlabel

lib/matplotlib/pyplot.py:4585–4595  ·  view source on GitHub ↗
(
    xlabel: str,
    fontdict: dict[str, Any] | None = None,
    labelpad: float | None = None,
    *,
    loc: Literal["left", "center", "right"] | None = None,
    **kwargs,
)

Source from the content-addressed store, hash-verified

4583# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
4584@_copy_docstring_and_deprecators(Axes.set_xlabel)
4585def xlabel(
4586 xlabel: str,
4587 fontdict: dict[str, Any] | None = None,
4588 labelpad: float | None = None,
4589 *,
4590 loc: Literal["left", "center", "right"] | None = None,
4591 **kwargs,
4592) -> Text:
4593 return gca().set_xlabel(
4594 xlabel, fontdict=fontdict, labelpad=labelpad, loc=loc, **kwargs
4595 )
4596
4597
4598# Autogenerated by boilerplate.py. Do not edit as changes will be lost.

Callers

nothing calls this directly

Calls 2

gcaFunction · 0.85
set_xlabelMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…