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
- fill
python:str
|python:tuple
Rectangle background color
- color
python:str
|python:tuple
Line color
- colour
python:str
|python:tuple
Alias of color
- size
python:float
Line thickness
- kwargs
python:dict
Parameters recognised by
matplotlib.patches.Rectangle
. In some cases you can use the fancy parameters frommatplotlib.patches.FancyBboxPatch
.
- fill