SkillAgentSearch skills...

Plotter

Plot data from CSV using Python, matplotlib and outputty

Install / Use

/learn @turicas/Plotter
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

plotter

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.

Requirements/Installation

  • Execute pip install numpy matplotlib outputty
  • Download plotter
  • Unpack outputty and plotter in the same directory (sorry for that - it'll be available on PyPI soon)

Examples

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')

then data.png will be created:

<img src="http://www.justen.eng.br/projects/plotter/img/data.png">

For more example please see file test_plotter.py. If you run it, a directory called test_results will be created with the plots.

License

This software is licensed under GPL 2.

Copyright

Copyright Álvaro Justen 2011

View on GitHub
GitHub Stars12
CategoryDevelopment
Updated8mo ago
Forks5

Languages

Python

Security Score

67/100

Audited on Jul 13, 2025

No findings