Skip to main content

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

Author:

Ron Reiter <ron@crosswise.com>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

hist-1.0.0.zip (4.5 kB view hashes)

Uploaded Source

hist-1.0.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page