sakz 0.1.0

Fast and simple plotting library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use svg::node::element::Group;

pub trait Plot {
    fn render(&self, figsize: (f64, f64), aspect: Option<f64>) -> Group;
    fn bbox(&self) -> (f64, f64, f64, f64);
    fn color(&mut self, color: &str) -> &mut Self
    where
        Self: Sized;
    fn marker_size(&mut self, size: f64) -> &mut Self
    where
        Self: Sized;
    fn xlim(&mut self, min: f64, max: f64) -> &mut Self
    where
        Self: Sized;
    fn ylim(&mut self, min: f64, max: f64) -> &mut Self
    where
        Self: Sized;
}