pixie.tree()
Syntax
tree(root, nodes, x, y, width, height,
pt=15, max=10, grow=False, border=False)
Description
Draws a tree network scheme. Draws a tree scheme exploding from a central root. The nodes list is expected to contain, for example: ( ("node1", ["leaf1a", "leaf1b"]), ("node2", ["leaf2a"]) ). Branches connect the nodes, and each node has its leaves drawn around it. Nodes grow smaller and smaller if grow is True. Uses line() and node() as callback to draw the network. Pixie can draw stunningly beautiful and complex schemes with data from WordNet this way.
Example
pixie = ximport("pixie")
root = "PixieBundle"
n1 = ("WordNet", ())
n2 = ("Wikipedia", ())
n3 = ("Pixie", ("paragraph","color","spacing","keywords"))
nodes = (n1,n2,n3)
pixie.tree(root, nodes, 200, 200, 400, 400, pt=15)