plotnine.themes.element_rect¶
- class plotnine.themes.element_rect(fill: str | TupleFloat3 | TupleFloat4 | None = None, color: str | TupleFloat3 | TupleFloat4 | None = None, size: float | None = None, linetype: str | Sequence[int] | None = None, colour: str | TupleFloat3 | TupleFloat4 | None = None, **kwargs: Any)[source]¶
Theme element: Rectangle
Used for backgrounds and borders
- Parameters:
- 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 frommatplotlib.patches.FancyBboxPatch
.
- fill