umplot v0.1.5

Plotting library

README


UmPlot

UmPlot: A plotting library for Umka based on raylib.

Example

import "umbox/umplot/umplot.um"

fn main() {
    plt := umplot::init(4)

    for i := 0; i < 4; i++ {
        plt.series[i].name = sprintf("Sine wave %d", i + 1)

        for x := 0.0; x <= 100.0; x += 1.0 {
            y := (1 + 0.5 * i) * sin(x / 10.0 + i)
            plt.series[i].add(x, y)
        }
    }

    plt.series[1].style.kind = .scatter

    plt.titles.graph = "UmPlot demo"
    plt.titles.x = "Time (seconds)"
    plt.titles.y = "Value"

    plt.plot()
}

Homepage

Source code

Documentation

License: BSD-2

Download count: 75

Last updated: 3 months ago


To add this package to your project run:

umbox install umplot

Or download as a tar.


Dependencies