Orange Forum • View topic - graph drawing

graph drawing

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

graph drawing

Postby shay » Wed Sep 07, 2005 15:09

I want to draw a simple graph (disconnected with many vertices and edges).does orange supply tools for easy graph drawing and transformations?
otherwise how can I draw lines and circles by orange?

(sorry if my questions are stupid ,python is new to me)

Postby Blaz » Wed Sep 07, 2005 19:52

Orange is just a data mining package, it does not include anything for drawing of graphs. If you will use it through scripting interface, you should find a package for graph drawing. In our lab, we use either dot from GraphViz (http://www.graphviz.org) or Pajek (http://vlado.fmf.uni-lj.si/pub/networks/pajek). That is, in your script you would save the graph to some file and run either dot or Pajek on it.

For data plotting (from script) there are many packages that can be run from Python. I personally like matplotlib (http://matplotlib.sourceforge.net).

If you want to draw graphs from Orange in Qt, the simplest (but not neccessary the best) way to plot circles and graphs are using Qt Canvas (http://doc.trolltech.com/2.3/canvas.html). You will find a number of widgets using this, and can perhaps learn from them as well.

For data plotting, widgets use Qwt (http://qwt.sourceforge.net, through PyQwt, http://pyqwt.sourceforge.net).


Return to Questions & Support