Skip to content

UmPlot: A plotting library for Umka

License

BSD-2-Clause, Zlib licenses found

Licenses found

BSD-2-Clause
LICENSE
Zlib
RAYLIB_LICENSE
Notifications You must be signed in to change notification settings

vtereshkov/umplot

Repository files navigation

UmPlot

UmPlot: A plotting library for Umka based on raylib.

Example

import "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()
}

About

UmPlot: A plotting library for Umka

Resources

License

BSD-2-Clause, Zlib licenses found

Licenses found

BSD-2-Clause
LICENSE
Zlib
RAYLIB_LICENSE

Stars

Watchers

Forks

Packages

No packages published

Languages