tiby312 / poloto-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

even simpler api?

tiby312 opened this issue · comments

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?

done. called it quick_fmt