plotlet v0.6.2

polyline

Pairwise data

Minimal call

c = pt.chart(xlim=(0, 10), ylim=(0, 6))
c.add_polyline([1, 3, 4, 6, 8, 9], [1, 4, 2, 5, 3, 5],
               color="#534AB7", linewidth=1.5)

Docstring

User-supplied geometry primitives — rect, polygon, polyline.

`rect` is scale-aware and broadcasts hlines/vlines-style. `polygon` takes
a single closed contour from parallel `xs` / `ys` vertices. `polyline` is
the open-path counterpart to `polygon` — same `(xs, ys)` shape, stroke-only,
never closes. Use it for diagonal reference segments and decorative
multi-point paths in data coords (the gap between `hlines`/`vlines` and
the data-shaped `c.add_line(aes(...))`).