from plotnine import ggplot, aes, geom_point, geom_boxplot, theme, element_rect
from plotnine.composition import plot_spacer
from plotnine.data import mtcars plotnine.composition.plot_spacer
plot_spacer(fill=None, alpha=None)Blank area as wide or as tall as a plot
Parameters
fill : str | tuple[float, float, float] | tuple[float, float, float, float] | None = None-
Background color. The default is a transparent area, but it can be changed through this parameter.
The color can also be modified by adding a
themeand setting theplot_background. alpha : float | None = None-
Opacity of the background fill, between 0 (transparent) and 1 (opaque). The default leaves the area transparent.
The opacity can also be modified by adding a
themeand setting theplot_background.



