最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Render graph in Python and Javascript - Stack Overflow

programmeradmin7浏览0评论

I am looking for libraries that can render graphs, PRETTY graphs.

I need to both render static images, preferably with python, and also to render them dynamically in the browser. A Canvas solution would be great, flash is acceptable too.

I googled around a little and found python-graph, but the images look quite ugly.

To clarify: I'm talking about graphs (), not charts.

I am looking for libraries that can render graphs, PRETTY graphs.

I need to both render static images, preferably with python, and also to render them dynamically in the browser. A Canvas solution would be great, flash is acceptable too.

I googled around a little and found python-graph, but the images look quite ugly.

To clarify: I'm talking about graphs (http://en.wikipedia/wiki/Graph_theory), not charts.

Share Improve this question asked Apr 16, 2011 at 14:47 theduketheduke 3,2154 gold badges31 silver badges29 bronze badges 1
  • thejit check this one out – KJYe.Name Commented Apr 16, 2011 at 14:51
Add a ment  | 

4 Answers 4

Reset to default 3

Check out following:

  • canviz - Graphviz graphs in JS
  • pydot - Graphviz for Python
  • yapgvb - Another alternative for Python

You should be able to use the same graph definition both in Python and JS. I hope those help. :)

Processing.js, a port of the Processing language, is a very powerful JavaScript visualization library that can been used to generate graphs.

You can check out Pydot, though the quality of the graphics might not be up to snuff. What about invoking raphael in your webapp? Not sure if people have done mathematical graphs, but the output certainly looks nice.

We use flot for the Internet Archives Open Library project and it works great. You can see a few of the graphs it's generated on the OpenLibrary front page.

发布评论

评论列表(0)

  1. 暂无评论