python动态图形,用Python动态生成图形

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!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值