unicode-plot 0.1.0

unicode-plot-rs: Unicode terminal plotting library for Rust
Documentation
  • Coverage
  • 85.28%
    197 out of 231 items documented8 out of 43 items with examples
  • Size
  • Source code size: 700.47 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 19.72 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 35s Average build duration of successful builds.
  • all releases: 35s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • nrminor/youplot-rs
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nrminor

A Unicode terminal plotting library for Rust.

This crate provides canvas-based rendering of plots using Unicode characters (braille, block elements, ASCII, dot, and density characters) for display in terminal emulators. It is a Rust port of the rendering layer from unicode_plot.rb and UnicodePlots.jl.

Quick start

use unicode_plot::{barplot, BarplotOptions};

let plot = barplot(
    &["cat", "dog", "parrot"],
    &[30, 45, 12],
    BarplotOptions::default(),
).unwrap();

let mut output = Vec::new();
plot.render(&mut output, false).unwrap();
let text = String::from_utf8(output).unwrap();
assert!(text.contains("dog"));