Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Render a xml graph as an image

6 views
Skip to first unread message

anand jeyahar

unread,
Nov 27, 2009, 4:23:42 PM11/27/09
to pytho...@python.org
hi all.
         Am looking to display a graph as an image.. the graph is in the format of a xml file(basically the output of a python-graph package).......... Is there a package that already does it??
==============================================
Anand J
http://sites.google.com/a/cbcs.ac.in/students/anand
==============================================
The man who is really serious,
with the urge to find out what truth is,
has no style at all. He lives only in what is.
                 ~Bruce Lee

Love is a trade with no accounting policies.
                ~Aang Jie

David Williams

unread,
Nov 27, 2009, 5:02:05 PM11/27/09
to anand jeyahar, pytho...@python.org
Maybe I am missing something, but according to this example,
http://code.google.com/p/python-graph/wiki/Example, python-graph can
export to at least PNG format. Another option, transform the XML into
GraphML (http://graphml.graphdrawing.org/) using XSLT (assuming it is not
already in that format), and then to SVG
(http://www.w3.org/Graphics/SVG/). From there it should be easy to either
directly display or get it into any bitmap format you want. On the
GraphML website their is an XSL to transform GraphML to SVG.

David

> --
> http://mail.python.org/mailman/listinfo/python-list
>

0 new messages