plotlet v0.6.2

area

Pairwise data

Minimal call

import math
xs = [i * 0.2 for i in range(40)]
df = {"x": xs, "y": [1.2 + math.sin(x) for x in xs]}

c = pt.chart(df, aes(x="x", y="y"), xlabel="x", ylabel="y")
c.add_area(alpha=0.4)

Docstring

Filled-region artists over x/y series.

`fill_between` fills between two curves (`y1` and `y2` columns over a
shared `x`). `area` stacks rows over `x`, optionally grouped by
`aes(fill=...)`.

  c.add_fill_between(aes(x="x", y1="lo", y2="hi"), fill="C0")  # band
  c.add_area(aes(x="x", y="y"))                                # single
  c.add_area(aes(x="x", y="y", fill="series"))                 # stacked