from plotnine import ggplot, aes, labs, geom_point, theme, theme_538, theme_set
from plotnine.data import mtcars
theme_set(theme_538())
plotnine.labs
labs(=None,
x=None,
y=None,
alpha=None,
color=None,
colour=None,
fill=None,
linetype=None,
shape=None,
size=None,
stroke=None,
title=None,
subtitle=None
caption )
Add labels for any aesthetics with a scale or title, subtitle & caption
Parameter Attributes
x: str | None = None
-
Name of the x-axis.
y: str | None = None
-
Name of the y-axis.
alpha: str | None = None
-
Name of the alpha legend.
color: str | None = None
-
Name of the color legend or colorbar.
colour: str | None = None
-
Name of the colour legend or colourbar.
This is an alias of the
color
parameter. Only use one of the spellings. fill: str | None = None
-
Name of the fill legend/colourbar.
linetype: str | None = None
-
Name of the linetype legend.
shape: str | None = None
-
Name of the shape legend.
size: str | None = None
-
Name of the size legend.
stroke: str | None = None
-
Name of the stroke legend.
title: str | None = None
-
The title of the plot.
subtitle: str | None = None
-
The subtitle of the plot.
caption: str | None = None
-
The caption at the bottom of the plot.