Automated Graph Plotting in Python

D

diffuser78

My python program spits lot of data. I take that data and plot graphs
using OfficeOrg spredsheet. I want to automate this task as this takes
so much of time. I have some questions.

1. Which is the best graph plotting utility in python or linux. Can I
write a code in such a way that my python code automatically gives me a
graph. I know little about gnuplot. If you know any better tool without
much learning curve please tell me in Linux.

2. I want to write a script such that my python code writes to a file,
some graph utility like gnuplot takes that data from the file and I get
my graph ready made. Do you think its possible ?

Any feedback regarding above is appreciated.

Thanks
 
F

Felipe Almeida Lessa

Em Sáb, 2006-04-08 às 20:08 -0700, (e-mail address removed) escreveu:
My python program spits lot of data. I take that data and plot graphs
using OfficeOrg spredsheet. I want to automate this task as this takes
so much of time. I have some questions.

You can try ReportLab (www.reportlab.org). Great tool.
 
P

Paddy

Hi,
I saw you mentioned gnuplot and did a search on Google of 'gnuplot
python-wrapper' which
lead me eventually to:
http://gnuplot-py.sourceforge.net/

I have not tried it, but if you would try it and report back if it
works that might help someone
else too.

- Cheerio, Paddy.
 
K

Kent Johnson

My python program spits lot of data. I take that data and plot graphs
using OfficeOrg spredsheet. I want to automate this task as this takes
so much of time. I have some questions.

1. Which is the best graph plotting utility in python or linux. Can I
write a code in such a way that my python code automatically gives me a
graph. I know little about gnuplot. If you know any better tool without
much learning curve please tell me in Linux.

I don't know which is best but some options are listed here:
http://wiki.python.org/moin/UsefulModules#head-a7e459aeb7e5672e6d431e972a3121670c4dcf1c
2. I want to write a script such that my python code writes to a file,
some graph utility like gnuplot takes that data from the file and I get
my graph ready made. Do you think its possible ?

The Python modules are generally oriented towards a Python API where you
pass the data to the plot package directly, rather than creating a file.
Under the hood some of them do exactly what you describe; I think
gnuplot.py works that way.

Kent
 
A

Alexander Schmolck

1. Which is the best graph plotting utility in python or linux.

matplotlib (provided it does the type of graphs you need, which is likely)

'as
 
P

per9000

Dear shrub-makers,

if you are want to plot networks (fx. genetic networks) I can recommend
Cytoscape: http://cytoscape.org/ (some kind of openware).

The in-syntax is clean:
node1 linktype1 node2
node2 linktype1 node3
node3 linktype2 node1
etc.

But in general you are going to want to change the layout of the
network after it is plotted. If you are into genetic networks it has a
number of built-in stuff. (For 2D-plots (demand vs time) cytoscape is
not an option.)

I also recommend gnuplot (like everyone else) for making the standard
y-axis, x-axis 2D-plots. It takes some time to learn syntax, but if I
remember correctly it is pretty simple.

/Per

Then when you have found the shrubbery, you must cut down the mightiest
tree in the forest...wiiiith *pause* a herring!
 
W

WEINHANDL Herbert

My python program spits lot of data. I take that data and plot graphs
using OfficeOrg spredsheet. I want to automate this task as this takes
so much of time. I have some questions.

1. Which is the best graph plotting utility in python or linux. Can I
write a code in such a way that my python code automatically gives me a
graph. I know little about gnuplot. If you know any better tool without
much learning curve please tell me in Linux.

if you want to plot graphs :

use pydot the wrapper for graphviz
http://dkbza.org/pydot.html
http://www.research.att.com/sw/tools/graphviz/

if you want to plot datas (2d) :
matplotlib
http://sourceforge.net/projects/matplotlib
or (2d/3d) dislin (=a plotting library with a python-wrapper)
http://www.dislin.de/
2. I want to write a script such that my python code writes to a file,
some graph utility like gnuplot takes that data from the file and I get
my graph ready made. Do you think its possible ?

Any feedback regarding above is appreciated.

Thanks

happy pythoning

Herbert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top