[pstricks] Tree Hierarchy
Runar Gjelsvik
Runar.Gjelsvik at cern.ch
Tue Feb 15 14:34:43 CET 2005
Hello,
I want to make a tree hierarchy that shows my software architecture.
I've been working with this simple example but I still have problems:
% Drawn as a tree (the bounding box is inaccurate)
\newcommand{\MyTree}{%
\pstree[treemode=R,treeflip=true,treesep=-0.7,levelsep=1,nodesep=0.1]%
{\TR{Level 1}}
{\Tn
\pstree{\TR{Level 21}}
{\Tn
\TR{Level 31}
\TR{Level 32}}
\tspace{-1}
\TR{Level 22}
\TR{Level 23}
\TR{Level 24}}}
\renewcommand{\psedge}{\ncangle[angleA=-90,angleB=180,armB=0]}
\MyTree
\psset{showbbox=true}
\MyTree
\end{document}
The problem is that the text I put in isn't aligned vertically. It seems
that the nodes aligns to their center. This makes my hierarchy look
extremely messy and not very nice:
TopLevel
|
+---This text goes here
+--------This here
+------Then like this
+---ABCDE
+----BCD
+-----C
Hope anyone can help me out here, because I'm starting to tear my hear
out!!
Cheers,
Runar Gjelsvik
More information about the PSTricks
mailing list