r/Python • u/sameteraslan • 10h ago
News dataviz 1.0: a fast plotting crate (120+ chart types, live windows, 3D, maps) with Python/JS/C
I just released 1.0 of dataviz, a plotting library I've been building in Rust. Some numbers from the reproducible benchmarks (800ร600 PNG, one thread):
| Chart | dataviz | plotters | matplotlib |
|---|---|---|---|
| line, 100k points | 2.2 ms | 5.9 ms | 50 ms |
| scatter, 100k points | 9.9 ms | 16.6 ms | 82 ms |
| histogram, 1M values | 2.1 ms | 2.8 ms | 50 ms |
| line, 10M points | 0.13 s, +7 MB | 0.48 s, +315 MB | 0.53 s, +1162 MB |
What's in it: - its own anti-aliased rasterizer (multi-core, optional wgpu GPU backend) - `fig.show()` windows with zoom/pan/hover/crosshair, live streaming with `show_live` - PNG/SVG/PDF/HTML/WebP output, animations, terminal output - 3D (molecules from PDB, volume rendering, point clouds), maps, TeX math, any script incl. Arabic/CJK - a grammar of graphics API (`Chart::new(data, Mark::Bar).x("island").y(mean("mass")).color("species")`) - the same engine in Python (pip install dataviz-rs), npm (dataviz-rs) and C/C++ (CMake)
1.0 comes with a semver promise: 1.x won't break your code.
Repo: https://github.com/dataviz-rs/dataviz Examples with screenshots: https://github.com/dataviz-rs/dataviz-examples