Hi
I want to dynamically generate a graph in python that would be
displayable on a web page. What would be the best way to do this?
The reason I want to do this, is because I am making a program to
convert data from scientic probes into web pages. I have been able to
do every thing except the graph generation.
Your help would be much appriciated
---
Tim Henderson
解决方案Tim Henderson wrote:
I want to dynamically generate a graph in python that would be
displayable on a web page. What would be the best way to do this?
See if you can run graphviz in the background.
http://www.research.att.com/sw/tools/graphviz/
If yes you''ll need to create an input file
based on your data then run the dot utility
on it to generate a graphics file.
There is pydot module that generates graphviz
files:
http://dkbza.org/pydot.html
IMO is a little bit too complicated, and might not be worth the trouble.
The dot file format is fairly simple and you might be better off
just understanding it and then generating directly
in that format. You will need to understand the format
anyhow if you want to customize the output.
Istvan.
Hi Tim,
Try looking into Matplotlib. There was some discussion on this recently in
their user forum:
http://sourceforge.net/mailarchive/f...forum_id=33405
Darren
Tim Henderson wrote:
Hi
I want to dynamically generate a graph in python that would be
displayable on a web page. What would be the best way to do this?
The reason I want to do this, is because I am making a program to
convert data from scientic probes into web pages. I have been able to
do every thing except the graph generation.
Your help would be much appriciated
---
Tim Henderson
On 2004-09-30, Tim Henderson wrote:
I want to dynamically generate a graph in python that would be
displayable on a web page. What would be the best way to do this?
I''d use gnuplot-py:
http://gnuplot-py.sourceforge.net/
The reason I want to do this, is because I am making a program
to convert data from scientic probes into web pages. I have
been able to do every thing except the graph generation.
gnuplot can generate a huge number of different file formats,
including png, svg, eps, pdf, ppm, gif, and so on.
--
Grant Edwards grante Yow! I will SHAVE and
at buy JELL-O and bring my
visi.com MARRIAGE MANUAL!!