Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nk412/quickhist
quickly plot a histogram on the CLI
https://github.com/nk412/quickhist
bash cli histogram plot unix
Last synced: about 1 month ago
JSON representation
quickly plot a histogram on the CLI
- Host: GitHub
- URL: https://github.com/nk412/quickhist
- Owner: nk412
- License: mit
- Created: 2015-12-01T02:20:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-07-17T00:27:40.000Z (over 2 years ago)
- Last Synced: 2024-08-01T16:43:00.484Z (4 months ago)
- Topics: bash, cli, histogram, plot, unix
- Language: Python
- Size: 3.91 KB
- Stars: 47
- Watchers: 4
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome-github-stars - nk412/quickhist - quickly plot a histogram on the CLI (Python)
README
quickhist
=========**NOTE:** requires `numpy`
Plots the distribution of the input data, and provides some basic stats.
Try:
for x in $( seq 1 100000 ); do echo $(( ($RANDOM + $RANDOM + $RANDOM) )) ; done | quickhist
```
│ ╻╻┃┃┃╻┃╻╻╻
│ ╻┃┃┃┃┃┃┃┃┃┃┃╻╻
│ ╻┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃╻
│ ╻┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃
prop. │ ╻┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃╻
│ ╻┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃╻
│ ╻┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃╻
│ ╻┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃╻╻
│ ╻╻┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃╻╻
│ ╻╻╻┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃╻╻
└──────────────────────────────────────────────────────────────
1601.0 97480.0count : 100000
25th perc. : 37635.75
50th perc. : 49159.0
75th perc. : 60738.0
```for x in $( seq 1 100000 ); do echo $RANDOM ; done | quickhist
```
│ ┃
│ ┃ ╻╻╻ ┃ ╻╻┃ ╻ ┃┃ ╻╻╻╻┃ ╻┃ ┃ ┃╻╻╻ ╻╻ ╻╻ ╻ ┃ ╻╻┃╻
│┃┃┃┃ ┃┃┃ ┃┃┃┃┃┃┃┃┃┃╻┃┃┃┃┃╻┃┃┃┃┃╻┃┃┃┃╻┃┃ ┃┃┃┃ ┃ ╻╻┃┃╻┃╻┃┃┃┃┃
│┃┃┃┃╻┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃
prop. │┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃
│┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃
│┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃
│┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃
│┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃
│┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃
└──────────────────────────────────────────────────────────────
5.0 32765.0count : 10000
25th perc. : 8156.5
50th perc. : 16158.5
75th perc. : 24324.0
```