plotnine.themes.element_rect

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

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.