473,757 Members | 9,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Automated Graph Plotting in Python

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
7 6849
Em Sáb, 2006-04-08 Ã*s 20:08 -0700, di********@gmai l.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
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
di********@gmai l.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
di********@gmai l.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
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...wiiiit h *pause* a herring!

Apr 10 '06 #6
di********@gmai l.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
Felipe Almeida Lessa wrote:
Em Sáb, 2006-04-08 Ã*s 20:08 -0700, di********@gmai l.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2495
by: Todd Gardner | last post by:
I would like to graph two columns of x,y numbers? I would greatly appreciate any pointers or suggestions. Thank you, Todd
0
1188
by: jrlen balane | last post by:
i'm going to use now the matplotlib in plotting a graph. i'm currently using python 2.3(enthought edition) on win 2000/xp. i'm using boa constructor on the GUI part. i am using an MDIParentFrame. one of the child frame will be used for the table part. then another child frame will be used to show the graph, how am i going to do this? will i just import the child frame containing the tables and then i'll be able to just get the data...
2
2940
by: KevinGPO | last post by:
I am making a monitor program for the PC. My monitor program will grab statistics about CPU and memory every 1 or 5 seconds. Then I want to store this data so I have a history and hence be able to graph this out in my GUI. I thought about using a plain text file to store my graph data and plot it out. Plot it out manually or use gnuplot. I found this tool called RRDTool (http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/). It's a...
11
29556
by: Chapman | last post by:
Is it possible to plot the graph as an output of my program in C? It can be a simple graph as quadratic curves for example or a correlation between 2 variables only. Thanks
1
3177
by: wayne | last post by:
i want to plot a line graph. The values that I obtain are the RGB value of a TIFF image. i m plotting RGB values vs value(1,2,3..) so when generated the RGB values, there will b a column of values for me t plot the line graph thanks alot Peteroid wrote: > What kind of 'plot' of the data do you want to do? A histogram ca > be done
5
1691
by: Ant | last post by:
Hi all, Are there any tree or graph modules available for python? Cheers, -- Ant...
4
2657
by: Gouri | last post by:
Hi, Got a query regarding plotting a preview / thumbnail for a graph which reads data from a binary file. The preview should should take very less time, look exactly like the original graph i.e. not miss the peaks and curves should look similar. Is there algorithm or anyway to do this in C#.Net. I have tried plotting points on regular intervals. Saves time but I m missing peaks and curves don't resemble.
3
4281
by: 9966 | last post by:
Greetings, I'm currently having problem in plotting a simple graph in C++. I learned that we can actually use koolplot to do it. My question is whether it is possible to plot, let's say the performance of 6 algorithms into one graph? If so, how? Because when I refer to the koolplot documentation all I see is just plotting one thing at a time in a graph. Thanks for any advice given.
2
6404
by: Durand | last post by:
Hi, I'm trying to plot a simple graph against date or time using matplotlib. I've read about date_plot but I'm not really sure how to use it. At the moment, I have some data arranged into lists, where list1 contains x values (time) and list2 contains y values just like is needed for the normal plot function. The time values are simply the output of datetime.date.today(), etc which I don't mind changing the format of. My question is, how do...
0
9489
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10072
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9906
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6562
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3829
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2698
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.