How do I draw a tree-like figure similar to the one below please?

enter image description here

  • What have you tried so far? Please add a MWE of your current code. The forest package should work for example.
    – epR8GaYuh
    Nov 25, 2019 at 14:52

2 Answers 2


With some ideas coming from this question, you can obtain such a structure like this:




        sibling distance = 10em,
        every node/.style = {%
            shape = rectangle,
            align = center,
        edge from parent fork down

        \node {Main Tree}
            child {node {Sub-tree 1\\{\scriptsize Some text}}}
            child {node {Sub-tree 2\\{\scriptsize Some text}}}
            child {node {Sub-tree 3\\{\scriptsize Some text}}};



enter image description here

You can adapt the distance between the nodes at the same level by changing the value of the sibling distance option and you can also change the distance between two levels by adding a level distance option. Finally, you can change the way your nodes are display by adding to the every node style.

For more, you can refer to the PGF/TikZ documentation and more precisely, to the trees library sections.

  • Thank you so much, you have been great help.
    – arilwan
    Nov 25, 2019 at 14:54

With forest is simple:


for tree = {
    text width= 22mm,
    text centered,
    s sep = 3mm,
    l sep = 4mm,
    forked edge,
    fork sep=2mm
[Main Tree
    [Sub-tree 1\\   \scriptsize Some text]
    [Sub-tree 2\\   \scriptsize Some text]
    [Sub-tree 3\\   \scriptsize Some text]

enter image description here

Not the answer you're looking for? Browse other questions tagged .