我是 tikz 新手,所以任何建议都值得感激。我有以下树,但我需要 FP 节点与价格节点处于同一级别(垂直)。
\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]
\scriptsize
\node {price}
child {node (one) {P}
}
child{node (two) {F}
child {node (down) {FP}
}
};
\draw (one) -- (down);
\end{tikzpicture};