numeric_bar
Pairwise data
Minimal call
df = {"x": [0.5, 1.2, 3.0, 3.4, 6.0, 8.5], "y": [3, 7, 4, 9, 2, 6]}
c = pt.chart(df, aes(x="x", y="y"), xlabel="pos", ylabel="score")
c.add_numeric_bar(width=0.4)
Docstring
Numeric-x bar.
Sibling of the categorical `c.add_bar`: where `bar` places cats on a band
scale and takes bandwidth from the scale, `numeric_bar` anchors bars at
*numeric* positions (e.g. genome coordinates, time-series with explicit
numeric x) with a fixed data-unit `width` you control directly.
c.add_numeric_bar(aes(x='col', y='col'), width=0.8, ...)