Orange Forum • View topic - graphviz in python

graphviz in python

A place to ask questions about methods in Orange and how they are used and other general support.

graphviz in python

Postby Guest » Thu Sep 08, 2005 13:14

Hi

according to your last respond. you said that I may use the graphviz libaries. how can I get these libaries compiled for python ? (I explored the graphviz site but I didn't find what I looked for)

Postby Blaz » Thu Sep 08, 2005 20:06

They do not compile with python, use Graphviz to generate graphs from text files you create in some python script.

Postby Guest » Sat Sep 10, 2005 18:37

Blaz wrote:They do not compile with python, use Graphviz to generate graphs from text files you create in some python script.


please tell me how can I call graphviz (as external windows exe file) with python. code will be very helpfull. that all I need to know in order to use graphviz through python

thanks

Postby Blaz » Sat Sep 10, 2005 19:21

you should consult basic python documentation on this.

Postby jgilbert » Tue Sep 20, 2005 21:13

He's right, just not very helpful.

Call dot as an external process using os.popen http://www.python.org/doc/2.4.1/lib/os-newstreams.html Just make sure that dot.exe is in your environment variable PATH. This link http://www.computerhope.com/issues/ch000549.htm was the first google hit telling you how to do that.

If you search through the Orange source code, you can find out how Orange does it for interaction graphs as an example.


Return to Questions & Support