plotlars 0.12.0

Plotlars is a Rust library designed to facilitate the integration between the Polars data analysis library and visualization libraries.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use plotlars::{Array2dPlot, Plot, Text};

fn main() {
    let data = vec![
        vec![[255, 0, 0], [0, 255, 0], [0, 0, 255]],
        vec![[0, 0, 255], [255, 0, 0], [0, 255, 0]],
        vec![[0, 255, 0], [0, 0, 255], [255, 0, 0]],
    ];

    Array2dPlot::builder()
        .data(&data)
        .plot_title(Text::from("Array 2D Plot").font("Arial").size(18))
        .build()
        .plot();
}