[pstricks] Tree Hierarchy

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Tue Feb 15 15:48:21 CET 2005


Runar Gjelsvik wrote:

> 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]% 

treesep=-0.7 is the problem here. Choose psmatrix instead

Herbert


\documentclass{article}
\usepackage{pstricks,pst-node}
\parindent=0pt

\begin{document}
foo
\psframebox{
\psmatrix[rowsep=0.15,colsep=0.0]
Level 1 & \\
         & Level 21\\
         &          & Level 31\\
         &          & Level 32\\
         & Level 22\\
         & Level 23\\
         & Level 24\\
\endpsmatrix
\psset{angleA=-90,angleB=180,nodesep=0.1}
\ncangle{1,1}{2,2}\ncangle{1,1}{5,2}\ncangle{1,1}{6,2}\ncangle{1,1}{7,2}
\ncangle{2,2}{3,3}\ncangle{2,2}{4,3}
}
bar
\end{document}



-- 
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes




More information about the PSTricks mailing list