ASCII Plotter

Allows you to plot simple graphs in ASCII. I use it when I want to visualize data real quick,
(for example, the numerical contents of a list).

Example usage:

In [15]: import aplotter
In [16]: aplotter.plot([1.0/(x+1) for x in range(29)])
   | |
   | |
   |  \
   |  \
   |   \
   |    \
   |     \\-
   |        --
   |          --------
   |                  ---------------------
   +0                                                                   +28

Among the features:

  • Plot x,y charts
  • Plot with or without (simple) interpolation
  • Plot with or without ascii-slopes (seen in the example)

The source in Python

6 replies on “ASCII Plotter”

Actually, not right now… At first ASCII plotter was used in PyTuner, but then I decided it wasn’t really helping, so I removed it. I still use it from time to time when I want a quick estimate of numerical data during interactive work, and working with pylab/matplotlib is more of a hassle than I would care to undergo. I’ll add some example use-cases soon.

Is this on github (or similar?) I’d like to add some things to it, but I don’t want to just steal your code and make it available.

Also, this makes me so happy – thank you!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.