plotlet v0.6.2

text

Guides & annotation

Minimal call

df = {"x": [1, 2, 3, 4, 5], "y": [3, 7, 4, 9, 5], "lab": list("ABCDE")}

c = pt.chart(df, aes(x="x", y="y"))
c.add_scatter()
c.add_text(aes(label="lab"), dy=-10, ha="center")

Docstring

Text-rendering artists — `text` for data-anchored labels, `annotate`
for a label connected to a point by an arrow.

  c.add_text(aes(x="x", y="y", label="name"))    # columns via aes
  c.add_annotate("peak", xy=(3, 14.7))           # one-off label

Both render glyph paths from the bundled DejaVu Sans so output stays
font-independent.