I'm new to tikz so any advice appreciated. I have the following tree, but I need the FP node to be an the same level (vertically) as the price node.

\begin{tikzpicture} [level distance=10mm,
level 1/.style={sibling distance=32mm, edge from parent/.append style= {solid}},
level 2/.style={sibling distance=16mm, edge from parent/.append style={solid}},
%level 3/.style={sibling distance=8mm,level distance=12mm, edge from parent/.append style={solid}}, grow=right]

\node {price}
child {node (one) {P}
child{node (two) {F}
child {node (down) {FP}
\draw (one) -- (down);

Do you mean something like this:

enter image description here

and code, of course:

\begin{tikzpicture} [
    level distance = 12 mm,
  sibling distance = 32 mm,
\node {price}
    child[grow=right] {node (down) {FP}}
    child[grow=south west]  {node (one) {P}}
    child[grow=south east]  {node (two) {F}}
\draw[red] (one) -- (down);
  • For some reason, using grow messes up the level and sibling distances. Any workaround for that? – an4s Mar 24 '18 at 3:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.