Simple Ribbon
val xs by columnOf(1.0, 2.0, 3.0, 4.0, 5.0, 6.0)
val mins by columnOf(0.2, 0.9, 0.55, 1.32, 2.2, 1.5)
val maxs by columnOf(0.7, 1.4, 1.1, 2.1, 2.6, 2.2)
val df = dataFrameOf(xs, mins, maxs)
df.plot {
ribbon {
x(xs)
yMin(mins)
yMax(maxs)
}
}
val xs = listOf(1.0, 2.0, 3.0, 4.0, 5.0, 6.0)
val mins = listOf(0.2, 0.9, 0.55, 1.32, 2.2, 1.5)
val maxs = listOf(0.7, 1.4, 1.1, 2.1, 2.6, 2.2)
plot {
ribbon {
x(xs)
yMin(mins)
yMax(maxs)
}
}
Last modified: 12 December 2023