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:
- color
str
|tuple
line color
- colour
str
|tuple
alias of color
- linetype
str
|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()
.- size
float
line thickness
- kwargs
dict
parameters recognised by
matplotlib.lines.line2d
.
- color