graplot
Experimental plotting library written in Rust and based on macroquad.
Examples
use Plot;
let plot = new;
plot.show;
Multiple graphs:
use Plot;
let xs = ;
let ys = ;
let ys1 = ;
let ys2 = ;
let mut plot = new;
plot.add;
plot.add;
plot.show;
Sine wave:
use Plot;
let mut xs = ;
let mut add = 0f64;
for idx in 0..1000
let mut ys = ;
for in ys.iter_mut.enumerate
// or alternatively: let plot = Plot::new((|x: f64| x.sin(), x(4.)));
let plot = new;
plot.show;
x³ + x² - 0.08:
use ;
// x(...) ... sets the absolute max value for x
let plot = new;
plot.show;
x² - 0.5:
use Plot;
let plot = new;
plot.show;
Using a line description: (matplotlib)
use Plot;
// c ... cyan color, - ... solid line, o ... ring marker
let plot = new;
plot.show;