1 unstable release

0.0.1 Oct 2, 2022

#43 in #charts

Download history 41/week @ 2024-03-23 18/week @ 2024-03-30 2/week @ 2024-04-06 2/week @ 2024-04-13 9/week @ 2024-04-20 5/week @ 2024-04-27 24/week @ 2024-05-04 5/week @ 2024-05-11 17/week @ 2024-05-18 31/week @ 2024-05-25 16/week @ 2024-06-01 11/week @ 2024-06-08 25/week @ 2024-06-15 2/week @ 2024-06-22

54 downloads per month
Used in twang

MIT/Apache

40KB
1K SLoC

Splotch

Plot data in footile

Documentation


lib.rs:

Plot data in footile

Example Line Plot

use splotch::{plot, Chart, Page, axis::{Horizontal, Vertical}};
use pointy::BBox;

let data = vec![(13.0, 74.0), (111.0, 37.0), (125.0, 52.0), (190.0, 66.0)];
let domain = {
    let mut domain = BBox::new(data.iter().cloned());
    domain.extend([0.0, 200.0]);
    domain
};
let plot = plot::Line::new("Series", &domain, &data);
let page = Page::default().with_chart(
    Chart::default()
        .with_title("Line Plot")
        .with_axis(Horizontal::new(domain).with_name("X Axis Name"))
        .with_axis(Vertical::new(domain).with_name("Y Axis Name").on_right())
        .with_plot(&plot),
);
println!("{}", page);

Dependencies

~470KB