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.

Files for hist, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size hist-1.0.0.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View
Filename, size hist-1.0.0.zip (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page