GithubHelp home page GithubHelp logo

termgraph's Introduction

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

termgraph's People

Contributors

mkaz avatar aquassaut avatar lebinh avatar rmetzler avatar dufferzafar avatar yegle avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.