hist

Commandline tool for plotting frequency ranked histograms of TSV/CSV data.

Installation

$ cargo install hist-cli export PATH="$HOME/.cargo/bin:$PATH"

Usage

``` $ hist --help hist 0.4.0 Plots histogram of input

USAGE: hist [FLAGS] [OPTIONS] [input]

FLAGS: -h, --help Prints help information -n, --nooutput do not save a PNG plot to a file -t, --textplot also plot a textplot to STDOUT -V, --version Prints version information

OPTIONS: -T, --Title optional title above the plot [default: Counts distribution] -o, --output <output> file to save PNG plot to [default: histogram.png] -s, --save <save> save counts data to file as TSV, use - for STDOUT -s, --size <size> the x and y pixel sizes of the output file [default: 1280x960] --xdesc <xdesc> x-axis label [default: Rank] --ydesc <ydesc> y-axis label [default: Counts]</p> <p>ARGS: <input> optional file with on entry per line [default: STDIN] ```</p> <p>Just piping from stdin: <code> $ cut -f 1 data.tsv | hist $ open histogram.png # on MacOS, on Linux maybe display or eog $ cut -f 1 data.tsv > data.tsv.1; hist data.tsv.1 -o histogram2.png $ echo 3 2 2 3 3 4 4 4 4 | tr ' ' '\n' | hist -n -t </code></p> <p><img src="https://raw.githubusercontent.com/ahcm/hist-cli/main/doc/histogram.png" alt="histogram" /></p> </body></html>