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
16
17
use plotlars::{CsvReader, HeatMap, Palette, Plot};

fn main() {
    let dataset = CsvReader::new("data/heatmap.csv").finish().unwrap();

    HeatMap::builder()
        .data(&dataset)
        .x("x")
        .y("y")
        .z("z")
        .color_scale(Palette::Viridis)
        .plot_title("Heat Map")
        .x_title("X")
        .y_title("Y")
        .build()
        .plot();
}