pythagoras.style.line module¶
- class pythagoras.style.line.Dashed(dash: float = 2, gap: float = 2, unit: str = 'pt', round: bool = False)[source]¶
Bases:
POPropertyDash pattern for stroked lines.
- Variables:
dash (float) – Dash length.
gap (float) – Gap length between dashes.
unit (str) – Unit for dash/gap (default: ‘pt’).
round (bool) – Use rounded line caps when
True.
- dash: float = 2¶
- gap: float = 2¶
- round: bool = False¶
- tikz() str[source]¶
Compiles the property into TikZ syntax.
- Returns:
The corresponding TikZ property.
- unit: str = 'pt'¶