mkaz / termgraph

a python command-line tool which draws basic graphs in the terminal
MIT License
3.15k stars 164 forks source link

Replace small tick with left one eighth block char #8

Closed lebinh closed 7 years ago

lebinh commented 7 years ago

So that you have this

$ ./termgraph.py ex1.dat
------------------------------------
Reading data from ex1.dat
------------------------------------

2011: ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇  509
2012: ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇  212
2014: ▏    1

instead of

$ ./termgraph.py ex1.dat
------------------------------------
Reading data from ex1.dat
------------------------------------

2011: ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇  509
2012: ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇  212
2014: |    1

Notice the 2014 line.

mkaz commented 7 years ago

Thanks!