8000 GitHub - guoyu07/termgraph: a python command-line tool which draws basic graphs in the terminal
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

guoyu07/termgraph

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

termgraph.py

A python command-line tool which draws basic graphs in the terminal

Author

Marcus Kazmierczak, http://mkaz.com/

Example

$ python termgraph.py ex1.dat

Background

I wanted a quick way to visualize some data which is stored in a simple text file. I initiall created some scripts in R which generated graphs but tended to be a two step process of creating the graph and then opening the generated graph.

I did some graphing using gnuplot, but X11 would never be started so it took time to start. So after seeing command-line sparklines I figured I could do the same thing using block characters for bar charts.

Usage

  • Create data file with two columns either comma or space separated. The first column is your labels, the second column is a numeric data

  • python termgraph.py [datafile]

TODO

I may or may not ever get around to these TODOs but a few ideas to take it further

  • Add switch for vertical bar charts
  • Add options and flags for width
  • Add options for different colors
  • Stacked Bar Charts
  • Multiple series (side-by-side)

Release Info

  • Ver 0.2 - Sep 22, 2012

    • Add width parameter
  • Ver 0.1 - Sep 21, 2012 - Initial Horizontal Graphs

About

a python command-line tool which draws basic graphs in the terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0