austinvhuang / plot

Simple plotting tool for the terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple plotting tool for the terminal

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 93.5%Language:Shell 4.0%Language:Python 2.4%