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

Function annotate

lib/matplotlib/pyplot.py:3036–3055  ·  view source on GitHub ↗
(
    text: str,
    xy: tuple[Any, Any],
    xytext: tuple[Any, Any] | None = None,
    xycoords: CoordsType = "data",
    textcoords: CoordsType | None = None,
    arrowprops: dict[str, Any] | None = None,
    annotation_clip: bool | None = None,
    **kwargs,
)

Source from the content-addressed store, hash-verified

3034# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
3035@_copy_docstring_and_deprecators(Axes.annotate)
3036def annotate(
3037 text: str,
3038 xy: tuple[Any, Any],
3039 xytext: tuple[Any, Any] | None = None,
3040 xycoords: CoordsType = "data",
3041 textcoords: CoordsType | None = None,
3042 arrowprops: dict[str, Any] | None = None,
3043 annotation_clip: bool | None = None,
3044 **kwargs,
3045) -> Annotation:
3046 return gca().annotate(
3047 text,
3048 xy,
3049 xytext=xytext,
3050 xycoords=xycoords,
3051 textcoords=textcoords,
3052 arrowprops=arrowprops,
3053 annotation_clip=annotation_clip,
3054 **kwargs,
3055 )
3056
3057
3058# Autogenerated by boilerplate.py. Do not edit as changes will be lost.

Callers

nothing calls this directly

Calls 2

gcaFunction · 0.85
annotateMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…