plotnine.element_rect

element_rect(
    fill=None, color=None, size=None, linetype=None, colour=None, kwargs={}
)

Theme element: Rectangle

Used for backgrounds and borders

Parameters

fill : str | tuple = None

Rectangle background color

color : str | tuple = None

Line color

colour : str | tuple = None

Alias of color

size : float = None

Line thickness

kwargs : dict = {}

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