diff options
Diffstat (limited to 'Master/texmf/doc/asymptote/examples/treetest.asy')
-rw-r--r-- | Master/texmf/doc/asymptote/examples/treetest.asy | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Master/texmf/doc/asymptote/examples/treetest.asy b/Master/texmf/doc/asymptote/examples/treetest.asy new file mode 100644 index 00000000000..dbdf973c508 --- /dev/null +++ b/Master/texmf/doc/asymptote/examples/treetest.asy @@ -0,0 +1,22 @@ +import drawtree; + +treeLevelStep = 2cm; + +TreeNode root = makeNode( "Root" ); +TreeNode child1 = makeNode( root, "Child\_1" ); +TreeNode child2 = makeNode( root, "Child\_2" ); + +TreeNode gchild1 = makeNode( child1, "Grandchild\_1" ); +TreeNode gchild2 = makeNode( child1, "Grandchild\_2" ); + +TreeNode gchild3 = makeNode( child1, "Grandchild\_3" ); +TreeNode gchild4 = makeNode( child1, "Grandchild\_4" ); + + +TreeNode gchild11 = makeNode( child2, "Grandchild\_1" ); +TreeNode gchild22 = makeNode( child2, "Grandchild\_2" ); + +TreeNode ggchild1 = makeNode( gchild1, "Great Grandchild\_1" ); + +draw( root, (0,0) ); + |