MWE:
\documentclass{article}
\usepackage{tikz}
\usepackage[edges]{forest}
\newcommand{\nodecircle}{circle,fill,outer sep=0,inner sep=1pt}
\begin{document}
\begin{forest}
[,\nodecircle, alias = I, s sep=0.4cm,l sep=2cm,
[Rain]
[Shine]
]
\node[above] at (I){Nature};
\end{forest}
\end{document}
This produces a forest with two nodes, growing downwards.
I know that to change the direction in which it grows, I have to use the grow = option
command.
However, how do I make both child nodes grow in separate directions?
Specifically, I want the first child node to grow east, and the second to grow west.
However, how do I grow in two different directions from the same parent node? Specifically, I want the Rain node to be horizontally to the right (i.e east
) and the Shine node to be west
.
This question provides an answer which even the person who answered deemed not elegant. I was wondering if there is a newer way to do it.
forest
manual.