Expand description
Complot is an idiomatic high-level wrapper to Rust plotters visualization crate. Complot allows to quickly visually inspect data without any other knowledge than the Rust standard library. Complot relies on Rust traits from the standard libray to produce the plots and on a simple tree of structures to configure the plots.
Example
Plotting sine and cosine functions
(0..100).map(|k| {
let o = 5.*std::f64::consts::PI*k as f64/100.;
let (s,c) = o.sin_cos();
(o,vec![s,c])
}).collect::<complot::Plot>();
Plotting sine and cosine functions with custom properties
let _: complot::Plot = (
(0..100).map(|k| {
let o = 5.*std::f64::consts::PI*k as f64/100.;
let (s,c) = o.sin_cos();
(o,vec![s,c])
}),
complot::complot!("sin_cos.svg", xlabel="x label", ylabel= "y label")
).into();
Modules
- Delaunay triangulation
Macros
- Macro to set some graph properties
Structs
- Axis properties
- Colorbar properties
- Combines plots of different
Kind
s - Graph properties
- Heatmap chart
- Lin-log plots
- Log-Lin plots
- Log-log plots
- Line plots
- Scatter plots