plotnine.themes.element_line

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

theme element: line

used for backgrounds and borders

Parameters
colorpython:str | python:tuple

line color

colourpython:str | python:tuple

alias of color

linetypepython:str | python: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().

sizepython:float

line thickness

kwargspython:dict

parameters recognised by matplotlib.lines.line2d.