tiby312 / poloto-project

MIT License
158 stars 10 forks source link

even simpler api? #171

Closed tiby312 closed 2 years ago

tiby312 commented 2 years ago

Something like:

    use poloto::build::line;
    let l1 = line("σ = 1.0", range.clone().map(|x| [x, g1(x)]));
    let l2 = line("σ = 0.5", range.clone().map(|x| [x, g2(x)]));
    let l3 = line("σ = 0.3", range.clone().map(|x| [x, g3(x)]));
    let m = poloto::build::origin();
    let p = simple_fmt2!("gaussian", "x", "y",l1, l2, l3, m);

with a sibling simple_fmt2_opt! macro that allows for render options?

tiby312 commented 2 years ago

done. called it quick_fmt