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