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
use plotlars::{CsvReader, DensityMapbox, Plot, Text};

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

    DensityMapbox::builder()
        .data(&data)
        .lat("city_lat")
        .lon("city_lon")
        .z("population_density")
        .center([39.8283, -98.5795])
        .zoom(3)
        .plot_title(Text::from("Density Mapbox").font("Arial").size(20))
        .build()
        .plot();
}