plotnine.themes.element_rect

class plotnine.themes.element_rect(fill: str | TupleFloat3 | TupleFloat4 | None = None, color: str | TupleFloat3 | TupleFloat4 | None = None, size: float | None = None, linetype: str | Sequence[int] | None = None, colour: str | TupleFloat3 | TupleFloat4 | None = None, **kwargs: Any)[source]

Theme element: Rectangle

Used for backgrounds and borders

Parameters:
fillstr | tuple

Rectangle background color

colorstr | tuple

Line color

colourstr | tuple

Alias of color

sizefloat

Line thickness

kwargsdict

Parameters recognised by matplotlib.patches.Rectangle. In some cases you can use the fancy parameters from matplotlib.patches.FancyBboxPatch.