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 details)

Uploaded Source

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

Uploaded Source

File details

Details for the file hist-1.0.0.zip.

File metadata

  • Download URL: hist-1.0.0.zip
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hist-1.0.0.zip
Algorithm Hash digest
SHA256 34055c1ee865936421d192ae89b09279fa6f46571e8ed4ff2a7c60d76dd9b92b
MD5 c68e1c7135f0c856f7e388b5461999d5
BLAKE2b-256 952251a0ed952af8601883c713091e7562ad703895d315d959c978ddd2ea4243

See more details on using hashes here.

File details

Details for the file hist-1.0.0.tar.gz.

File metadata

  • Download URL: hist-1.0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hist-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0d331408ad70085041fcf649840f2e5e7488b4cb0ec4c3e7e4c164b01f90a5b8
MD5 f70b55e7374b44473c62a81e77007a5c
BLAKE2b-256 931825b8cf4533f1ba6bbcfebc6693038013b662818217bf6a2a049f327b7b0c

See more details on using hashes here.

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