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
str
geom to use for annotation, or name of geom (e.g. 'point').
- x
float
Position
- y
float
Position
- xmin
float
Position
- ymin
float
Position
- xmax
float
Position
- ymax
float
Position
- xend
float
Position
- yend
float
Position
- xintercept
float
Position
- yintercept
float
Position
- kwargs
dict
Other aesthetics or parameters to the geom.
- geomgeom or
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'
.