hist 0.1.0

A tiny library to print histograms in Rust.
Documentation
  • Coverage
  • 0%
    0 out of 13 items documented0 out of 12 items with examples
  • Size
  • Source code size: 4.67 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.26 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • DimChtz/rust-hist
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • DimChtz

rust-hist (hist) - v0.1.0

A tiny library to print histograms in Rust.

Examples

Print a histogram.

let mut h = hist::Hist::new(30, 5, &vec![1, 2, 3, 4, 5, 6, 7, 8, 9, 10], &vec![21, 10, 15, 17, 26, 8, 12, 2, 5, 7]);

h.display();

or just:

hist::Hist::new(30, 5, &vec![1, 2, 3, 4, 5, 6, 7, 8, 9, 10], &vec![21, 10, 15, 17, 26, 8, 12, 2, 5, 7]).display();
Result
              *

*         *   *

*      *  *   *     *

*   *  *  *   *  *  *         *

*   *  *  *   *  *  *      *  *

*******************************

Installation

Add this line to your Cargo.toml:

[dependencies]

hist = "0.1.0"

and then add this line to your main.rs:

extern crate hist;