plot
plot copied to clipboard
Simple plotting tool for the terminal
trafficstars
Plot
A simple tool for plotting data in the terminal

Building
This doesn't work in Windows.
Install Stack
Make sure you have terminfo installed on the system, eg. on Alpine apk add ncurses-terminfo.
stack build
stack install
Testing
stack test
Benchmarking
stack bench --ba "--output bench.html"
Usage
set -e; for i in {0..100}; do echo "$((-30 + $RANDOM%60))"; done | plot
plot -f <(set -e; for i in {0..100}; do echo "$((-30 + $RANDOM%60))"; done)
plot -f data.txt
Press Q to quit.
Press T to toggle Y-axis ticks
You can switch between modes with:
- A - area plot
- B - bar plot
- H - histogram
- P - points