pythagoras.style.line module

class pythagoras.style.line.Dashed(dash: float = 2, gap: float = 2, unit: str = 'pt', round: bool = False)[source]

Bases: POProperty

Dash 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
classmethod dotted(width: float = 1, round: bool = True) Self[source]
gap: float = 2
round: bool = False
svg() str[source]

Compiles the property into SVG syntax.

Returns:

The corresponding SVG property.

tikz() str[source]

Compiles the property into TikZ syntax.

Returns:

The corresponding TikZ property.

unit: str = 'pt'