v_hist 0.1.3

A really quick way to make histograms that fix the terminal
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate rand;
extern crate v_hist;

use rand::Rng;

fn main() {
    let mut h = v_hist::init();
    let mut rng = rand::thread_rng();

    // h.max_width = 50;

    for x in 0..200 {
        h.add_entry(format!("{}", x), rng.gen_range(0..3000));
    }

    h.draw();
}