Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 842 Bytes

README.md

File metadata and controls

52 lines (34 loc) · 842 Bytes

Plot

A simple tool for plotting data in the terminal

Plot demo


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