By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,505 Members | 1,034 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,505 IT Pros & Developers. It's quick & easy.

Automated Graph Plotting in Python

P: n/a
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

Apr 9 '06 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Em Sáb, 2006-04-08 *s 20:08 -0700, di********@gmail.com 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.

--
Felipe.

Apr 9 '06 #2

P: n/a
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.

Apr 9 '06 #3

P: n/a
di********@gmail.com wrote:
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/UsefulMo...3121670c4dcf1c
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
Apr 9 '06 #4

P: n/a
di********@gmail.com writes:
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
Apr 9 '06 #5

P: n/a
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!

Apr 10 '06 #6

P: n/a
di********@gmail.com schrieb:
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
Apr 10 '06 #7

P: n/a
Felipe Almeida Lessa wrote:
Em Sáb, 2006-04-08 *s 20:08 -0700, di********@gmail.com 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.


xmgrace if you have Motif. Easy enough to pipe your python output to it.

Apr 10 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.