plotnine.themes.element_rect

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

Theme element: Rectangle

Used for backgrounds and borders

Parameters
fillpython:str | python:tuple

Rectangle background color

colorpython:str | python:tuple

Line color

colourpython:str | python:tuple

Alias of color

sizepython:float

Line thickness

kwargspython:dict

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