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 | list[float] | None = None-
Position
y : float | list[float] | None = None-
Position
xmin : float | list[float] | None = None-
Position
ymin : float | list[float] | None = None-
Position
xmax : float | list[float] | None = None-
Position
ymax : float | list[float] | None = None-
Position
xend : float | list[float] | None = None-
Position
yend : float | list[float] | None = None-
Position
xintercept : float | list[float] | None = None-
Position
yintercept : float | list[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".