This is a little project on top of outputty and matplotlib that aims in easily create plots (without all pain of using matplotlib). By now you can do linear, scatter and bar plots with data from CSV files.
pip install numpy matplotlib outputty
- Download plotter
plotterin the same directory (sorry for that - it'll be available on PyPI soon)
If you have a CSV file called
data.csv with this content:
"X Values","Y Values","Z Values" 1,1,2011-01-01 4,8,2011-01-02 9,27,2011-01-03 16,64,2011-01-04 25,125,2011-01-05 36,216,2011-01-06 49,343,2011-01-07 64,512,2011-01-08 81,729,2011-01-09
and execute this little piece of code:
from plotter import Plotter my_plot = Plotter('data.csv') my_plot.scatter(x_column='Z Values', title='Hello, plotter!', colors=['blue', 'red']) my_plot.save('data.png')
data.png will be created:
For more example please see file
test_plotter.py. If you run it, a directory called
test_resultswill be created with the plots.
This software is licensed under GPL 2.
Copyright Álvaro Justen 2011