Termgraph
A command-line tool that draws basic graphs in the terminal, written in Python.
Graph types supported:
- Bar Graphs
- Color charts
- Multi-variable
- Stacked charts
- Histograms
- Horizontal or Vertical
- Emoji!
Examples
termgraph data/ex1.dat
# Reading data from data/ex1.dat
2007: βββββββββββββββββ 183.32
2008: ββββββββββββββββββββββ 231.23
2009: β 16.43
2010: ββββ 50.21
2011: ββββββββββββββββββββββββββββββββββββββββββββββββββ 508.97
2012: ββββββββββββββββββββ 212.05
2014: β 1.00
An example using emoji as custom tick:
termgraph data/ex1.dat --custom-tick "π" --width 20 --title "Running Data"
# Running Data
2007: πππππππ 183.32
2008: πππππππππ 231.23
2009: 16.43
2010: π 50.21
2011: ππππππππππππππππππππ 508.97
2012: ππππππππ 212.05
2014: 1.00
An example using stdin and emoji:
echo "Label,3,9,1" | termgraph --custom-tick "π" --no-label
πππ 3.00
πππππππππ 9.00
π 1.00
Most results can be copied and pasted wherever you like, since they use standard block characters. However the color charts will not show, since they use terminal escape codes for color. A couple images toβ¦