kandy 0.7.0 Help

Function Ribbon Graph

val xs = (-1000..1000).map { it / 250.0f } val function = { x: Float -> sin(2 * x) * cos(x / 2 - 3f) } val yActual = xs.map(function) val yLow = yActual.map { it - 0.25f } val yHigh = yActual.map { it + 0.25f } plot { ribbon { x(xs) yMin(yLow) yMax(yHigh) fillColor = Color.LIGHT_BLUE } }
Functional Area Plot
Last modified: 06 February 2024