3 Sep 2010 09:48
Missing part of my graphics
Anders K <anders_kk <at> hotmail.com>
2010-09-03 07:48:42 GMT
2010-09-03 07:48:42 GMT
Hi there,
I'm using tikz for my master's thesis in computer science. Right now I'm
drawing some trees and I let them grow in different directions e.g. using
'child [grow=right]'. My problem is that some parts of my tree disappear. It
might be because there is an origin in the upper left corner and when I make
the tree grow upwards, it grows out of the "paper"? Any ideas? Thanks
Here's my code:
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{positioning,arrows}
\begin{document}
\begin{tikzpicture}
\tikzstyle vertex=[circle,draw,fill=black,inner sep=1pt]
\tikz[scale=0.8]{
\node (r) [vertex] {}
child [grow=left]{ node (c1) [vertex] {}
child{ node (c11) [vertex] {} }
child{ node (c12) [vertex] {} }
child{ node (c13) [vertex] {} }
}
child { node (c2) [vertex] {} }
child [grow=right]{ node (c3) [vertex] {}
child [grow=right]{ node (c31) [vertex] {}
child{ node (c311) [vertex] {} }
child{ node (c312) [vertex] {} }
}
child [grow=up]{ node (c32) [vertex] {}
child{ node (c321) [vertex] {} }
child{ node (c322) [vertex] {} }
}
}
;
}
\hspace{2 cm}
\tikz[scale=0.8]{
\node (r) [vertex] {}
child { node (c1) [vertex] {}
child{ node (c11) [vertex] {} }
child{ node (c12) [vertex] {} }
child{ node (c13) [vertex] {} }
}
child { node (c2) [vertex] {} }
child { node (c3) [vertex] {}
child { node (c31) [vertex] {}
child{ node (c311) [vertex] {} }
child{ node (c312) [vertex] {} }
}
child { node (c32) [vertex] {} }
}
;
}
\end{tikzpicture}
\end{document}
--
--
View this message in context: http://old.nabble.com/Missing-part-of-my-graphics-tp29605244p29605244.html
Sent from the pgf-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
RSS Feed