class plotnine.themes.element_rect(fill=None, color=None, size=None, linetype=None, colour=None, **kwargs)[source]

Theme element: Rectangle

Used for backgrounds and borders

fill : str | tuple

Rectangle background color

color : str | tuple

Line color

colour : str | tuple

Alias of color

size : float

Line thickness

kwargs : dict

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