hist generates histograms from a list of numbers
Project description
hist lets you create quick histograms using a series of numbers from the command line.
Installing:
sudo pip install hist
Usage:
Running the following command:
echo ‘1n2n2n3n3n3n4n4n5n6n7n7n8n8n8n9n9n10’ | hist
Will create a histogram:
![Histogram](https://raw.githubusercontent.com/crosswise/hist/master/histogram.png)
It will also output a textual representation:
[ 1 - 1]: 1 ########## [ 2 - 2]: 2 ##################### [ 3 - 3]: 3 ################################ [ 4 - 4]: 2 ##################### [ 5 - 5]: 1 ########## [ 6 - 6]: 1 ########## [ 7 - 7]: 2 ##################### [ 8 - 8]: 3 ################################ [ 9 - 9]: 2 ##################### [ 10 - 10]: 1 ##########
Usage:
usage: hist [-h] [-i INPUT] [-b BUCKETS] [-s SCREEN_WIDTH] [-t TITLE]
- optional arguments:
- -h, --help
show this help message and exit
- -i INPUT, --input INPUT
input file to read from
- -b BUCKETS, --buckets BUCKETS
number of buckets
- -s SCREEN_WIDTH, --screen-width SCREEN_WIDTH
maximum screen width
- -t TITLE, --title TITLE
title for plot
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.