Example: Computer science mindmap

Published 2006-11-08 | Author: The TikZ and PGF manual

Version 1.09 of PGF/TikZ added a library for drawing mindmaps. Here's an example from the manual.

Author: Till Tantau
Source: The PGF/TikZ manual

Download as: [PDF] [TEX]

Computer science mindmap

Do you have a question regarding this example, TikZ or LaTeX in general? Just ask in the LaTeX Forum.
Oder frag auf Deutsch auf TeXwelt.de. En français: TeXnique.fr.

% Author: Till Tantau
% Source: The PGF/TikZ manual

  \path[mindmap,concept color=black,text=white]
    node[concept] {Computer Science}
    [clockwise from=0]
    child[concept color=green!50!black] {
      node[concept] {practical}
      [clockwise from=90]
      child { node[concept] {algorithms} }
      child { node[concept] {data structures} }
      child { node[concept] {pro\-gramming languages} }
      child { node[concept] {software engineer\-ing} }
    child[concept color=blue] {
      node[concept] {applied}
      [clockwise from=-30]
      child { node[concept] {databases} }
      child { node[concept] {WWW} }
    child[concept color=red] { node[concept] {technical} }
    child[concept color=orange] { node[concept] {theoretical} };


  • #1 Roberto, November 25, 2008 at 1:51 a.m.

    Really good. The best technologies for powering LaTeX. I'm a new user of this extended language. When I tryed for fisrt time, I hope that LaTeX was so complicated for making a simple Didactic File, but at this time, I'm very satisfied on trying it. (sorry for my ugly english)

  • #2 Brett Bellomo, April 6, 2010 at 8:14 p.m.

    Is there any quiz that you can design for reading the "mindmap(s)".--Deatiled interpretation? Have done 4 yrs Java,Msoft common tests..can negotiate by email.only email

  • #3 Oscar Morante, July 3, 2010 at 3:30 p.m.

    Hi, Thanks for this examples. I'm having a rendering problem with the Debian squeeze/sid package. If you download the PDF file for this example you'll see what I mean as this is exactly what I'm experiencing. Anybody know how to fix this?

    Thanks, Oscar.

  • #4 Alan, October 18, 2010 at 12:44 p.m.


    this example is great - thanks a lot!

    However, is there a way to slightly change the size of the resulting output? I am using "beamer" and the plot i have generated is just a little bit bigger than the slide. Can one "scale" it down?


  • #5 Michael Fladischer, November 1, 2010 at 10:34 p.m.

    @Oscar Morante: Try to use ps2latex+ps2pdf for good results. Using pdflatex seems to be responsible for those rendering errors.

  • #6 Pablo, September 7, 2012 at 6:51 p.m.

    Regarding scaling the output. I generate a PDF page. Then include it in my LaTeX source using the following example for file yourMindMap.pdf: \includegraphics[viewport=20 20 500 500, clip=true, keepaspectratio, scale=0.5, angle=0]{yourMindMap.pdf}

    The arguments to viewport are in points (use length of PDF page in inches times 72 to get points) and mean respectively: the distance from left border, the distance from the bottom edge, then the width, and finally the height you want shown in your document. When you show an eps file these coordinates will count for the bounding box, otherwise they count for the whole page or image like for jpg (no bounding box).

Adding comments is currently not enabled.