plotnine.annotate

annotate(
    geom,
    x=None,
    y=None,
    xmin=None,
    xmax=None,
    xend=None,
    xintercept=None,
    ymin=None,
    ymax=None,
    yend=None,
    yintercept=None,
    **kwargs
)

Create an annotation layer

Parameters

geom : str | type[geom_base_class]

geom to use for annotation, or name of geom (e.g. ‘point’).

x : float | None = None

Position

y : float | None = None

Position

xmin : float | None = None

Position

ymin : float | None = None

Position

xmax : float | None = None

Position

ymax : float | None = None

Position

xend : float | None = None

Position

yend : float | None = None

Position

xintercept : float | None = None

Position

yintercept : float | None = None

Position

kwargs : Any = {}

Other aesthetics or parameters to the geom.

Notes

The positioning aethetics x, y, xmin, ymin, xmax, ymax, xend, yend, xintercept, yintercept depend on which geom is used.

You should choose or ignore accordingly.

All geoms are created with stat="identity".