plotnine.geoms.annotate

class plotnine.geoms.annotate(geom: str | type[geom_base_class], x: float | None = None, y: float | None = None, xmin: float | None = None, xmax: float | None = None, xend: float | None = None, xintercept: float | None = None, ymin: float | None = None, ymax: float | None = None, yend: float | None = None, yintercept: float | None = None, **kwargs: Any)[source]

Create an annotation layer

Parameters
geomgeom or python:str

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

xpython:float

Position

ypython:float

Position

xminpython:float

Position

yminpython:float

Position

xmaxpython:float

Position

ymaxpython:float

Position

xendpython:float

Position

yendpython:float

Position

xinterceptpython:float

Position

yinterceptpython:float

Position

kwargspython:dict

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'.