plotnine.themes.element_line

class plotnine.themes.element_line(*, color: str | TupleFloat3 | TupleFloat4 | None = None, size: float | None = None, linetype: str | Sequence[int] | None = None, lineend: Literal['butt', 'projecting', 'round'] | None = None, colour: str | TupleFloat3 | TupleFloat4 | None = None, **kwargs: Any)[source]

theme element: line

used for backgrounds and borders

Parameters:
colorstr | tuple

line color

colourstr | tuple

alias of color

linetypestr | tuple

line style. if a string, it should be one of solid, dashed, dashdot or dotted. you can create interesting dashed patterns using tuples, see matplotlib.lines.line2D.set_linestyle().

sizefloat

line thickness

kwargsdict

parameters recognised by matplotlib.lines.line2d.