Open RubixDev opened 10 months ago
Actually I think TikZ doesn't even try to calculate the needed space itself and just relies on the user to set the node distance
accordingly.
Actually I think TikZ doesn't even try to calculate the needed space itself and just relies on the user to set the
node distance
accordingly.
Yes, TikZ does not measure the tree nodes, I have tested this before, when I was trying to implement a more TikZ like layout.
I will take a look at this. I think it can only be done by layouting in multiple passes by “correcting” subtrees after the first layout.
From Discord here. The tree function positions the
Lt
node to the right of the left subtree, even though there would be enough space for centering it below its parent. Either the placement algorithm should be improved or it should be made possible to manually tweak the placement of nodes.Below is a picture of the same tree using LaTeX with TikZ.