Forest tree diagram - arrows not aligning
up vote
2
down vote
favorite
I used this answer to create a similar tree: https://tex.stackexchange.com/a/256753/175628
However the arrows do not align: with the joining lines:

Here is the forest code:
begin{figure}[H]
begin{center}
begin{forest}
for tree={
align=center,
parent anchor=south,
child anchor=north,
font=sffamily,
edge={thick, -{Stealth}},
l sep+=10pt,
edge path={
noexpandpath [draw, forestoption{edge}] (!u.parent anchor) -- +(0,-10pt) -| (.child anchor)forestoption{edge label};
},
if level=0{
inner xsep=0pt,
tikz={draw [thick] (.south east) -- (.south west);}
}{}
}
[Graphical User Interface
[textbf{Drawing Functions}, name=A
[textbf{Plot Pane}
[textbf{Layer System}
[textbf{Draw onto Canvas}]
[textbf{Clear the Canvas}]
[textbf{Bind Properties}]
]
]
]
[Shared Layer Access, name=C]
[Inputing Functions, name=B
[Add Functions]
[Remove Functions]
[Modify Functions]
]
]
draw[-latex] (A) to[out=east,in=west] (C);
draw[-latex] (B) to[out=west,in=east] (C);
end{forest}
end{center}
caption{Graphical User Interface Hierarchical Diagram}
If the preamble is needed I will post it but it is the most horrible thing I have mashed together.
tikz-pgf forest
add a comment |
up vote
2
down vote
favorite
I used this answer to create a similar tree: https://tex.stackexchange.com/a/256753/175628
However the arrows do not align: with the joining lines:

Here is the forest code:
begin{figure}[H]
begin{center}
begin{forest}
for tree={
align=center,
parent anchor=south,
child anchor=north,
font=sffamily,
edge={thick, -{Stealth}},
l sep+=10pt,
edge path={
noexpandpath [draw, forestoption{edge}] (!u.parent anchor) -- +(0,-10pt) -| (.child anchor)forestoption{edge label};
},
if level=0{
inner xsep=0pt,
tikz={draw [thick] (.south east) -- (.south west);}
}{}
}
[Graphical User Interface
[textbf{Drawing Functions}, name=A
[textbf{Plot Pane}
[textbf{Layer System}
[textbf{Draw onto Canvas}]
[textbf{Clear the Canvas}]
[textbf{Bind Properties}]
]
]
]
[Shared Layer Access, name=C]
[Inputing Functions, name=B
[Add Functions]
[Remove Functions]
[Modify Functions]
]
]
draw[-latex] (A) to[out=east,in=west] (C);
draw[-latex] (B) to[out=west,in=east] (C);
end{forest}
end{center}
caption{Graphical User Interface Hierarchical Diagram}
If the preamble is needed I will post it but it is the most horrible thing I have mashed together.
tikz-pgf forest
Welcome! Please post compilable code i.e. a complete example.
– cfr
Nov 28 at 2:43
1
@cfr Sorry my bad, I am using subfiles so I did know what packages were needed, but I will do that next time!
– Leafy1201
Nov 28 at 21:56
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I used this answer to create a similar tree: https://tex.stackexchange.com/a/256753/175628
However the arrows do not align: with the joining lines:

Here is the forest code:
begin{figure}[H]
begin{center}
begin{forest}
for tree={
align=center,
parent anchor=south,
child anchor=north,
font=sffamily,
edge={thick, -{Stealth}},
l sep+=10pt,
edge path={
noexpandpath [draw, forestoption{edge}] (!u.parent anchor) -- +(0,-10pt) -| (.child anchor)forestoption{edge label};
},
if level=0{
inner xsep=0pt,
tikz={draw [thick] (.south east) -- (.south west);}
}{}
}
[Graphical User Interface
[textbf{Drawing Functions}, name=A
[textbf{Plot Pane}
[textbf{Layer System}
[textbf{Draw onto Canvas}]
[textbf{Clear the Canvas}]
[textbf{Bind Properties}]
]
]
]
[Shared Layer Access, name=C]
[Inputing Functions, name=B
[Add Functions]
[Remove Functions]
[Modify Functions]
]
]
draw[-latex] (A) to[out=east,in=west] (C);
draw[-latex] (B) to[out=west,in=east] (C);
end{forest}
end{center}
caption{Graphical User Interface Hierarchical Diagram}
If the preamble is needed I will post it but it is the most horrible thing I have mashed together.
tikz-pgf forest
I used this answer to create a similar tree: https://tex.stackexchange.com/a/256753/175628
However the arrows do not align: with the joining lines:

Here is the forest code:
begin{figure}[H]
begin{center}
begin{forest}
for tree={
align=center,
parent anchor=south,
child anchor=north,
font=sffamily,
edge={thick, -{Stealth}},
l sep+=10pt,
edge path={
noexpandpath [draw, forestoption{edge}] (!u.parent anchor) -- +(0,-10pt) -| (.child anchor)forestoption{edge label};
},
if level=0{
inner xsep=0pt,
tikz={draw [thick] (.south east) -- (.south west);}
}{}
}
[Graphical User Interface
[textbf{Drawing Functions}, name=A
[textbf{Plot Pane}
[textbf{Layer System}
[textbf{Draw onto Canvas}]
[textbf{Clear the Canvas}]
[textbf{Bind Properties}]
]
]
]
[Shared Layer Access, name=C]
[Inputing Functions, name=B
[Add Functions]
[Remove Functions]
[Modify Functions]
]
]
draw[-latex] (A) to[out=east,in=west] (C);
draw[-latex] (B) to[out=west,in=east] (C);
end{forest}
end{center}
caption{Graphical User Interface Hierarchical Diagram}
If the preamble is needed I will post it but it is the most horrible thing I have mashed together.
tikz-pgf forest
tikz-pgf forest
asked Nov 27 at 21:26
Leafy1201
133
133
Welcome! Please post compilable code i.e. a complete example.
– cfr
Nov 28 at 2:43
1
@cfr Sorry my bad, I am using subfiles so I did know what packages were needed, but I will do that next time!
– Leafy1201
Nov 28 at 21:56
add a comment |
Welcome! Please post compilable code i.e. a complete example.
– cfr
Nov 28 at 2:43
1
@cfr Sorry my bad, I am using subfiles so I did know what packages were needed, but I will do that next time!
– Leafy1201
Nov 28 at 21:56
Welcome! Please post compilable code i.e. a complete example.
– cfr
Nov 28 at 2:43
Welcome! Please post compilable code i.e. a complete example.
– cfr
Nov 28 at 2:43
1
1
@cfr Sorry my bad, I am using subfiles so I did know what packages were needed, but I will do that next time!
– Leafy1201
Nov 28 at 21:56
@cfr Sorry my bad, I am using subfiles so I did know what packages were needed, but I will do that next time!
– Leafy1201
Nov 28 at 21:56
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
Welcome to TeX.SE! Are you looking for calign=child,calign child=2?
documentclass[tikz,border=3.14mm]{standalone}
usepackage[edges]{forest}
usetikzlibrary{arrows.meta}
begin{document}
begin{forest}
for tree={
align=center,
calign=child,calign child=2,
font=sffamily,
edge+={thick, -{Stealth}},
l sep'+=10pt,
fork sep'=10pt,
},
forked edges,
if level=0{
inner xsep=0pt,
tikz={draw [thick] (.children first) -- (.children last);}
}{},
[Graphical User Interface
[textbf{Drawing Functions}, name=A
[textbf{Plot Pane}
[textbf{Layer System}
[textbf{Draw onto Canvas}]
[textbf{Clear the Canvas}]
[textbf{Bind Properties}]
]
]
]
[Shared Layer Access, name=C]
[Inputing Functions, name=B
[Add Functions]
[Remove Functions]
[Modify Functions]
]
]
draw[-latex] (A) to[out=east,in=west] (C);
draw[-latex] (B) to[out=west,in=east] (C);
end{forest}
end{document}

Thank you for the warm welcome and the answer!
– Leafy1201
Nov 27 at 22:43
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
Welcome to TeX.SE! Are you looking for calign=child,calign child=2?
documentclass[tikz,border=3.14mm]{standalone}
usepackage[edges]{forest}
usetikzlibrary{arrows.meta}
begin{document}
begin{forest}
for tree={
align=center,
calign=child,calign child=2,
font=sffamily,
edge+={thick, -{Stealth}},
l sep'+=10pt,
fork sep'=10pt,
},
forked edges,
if level=0{
inner xsep=0pt,
tikz={draw [thick] (.children first) -- (.children last);}
}{},
[Graphical User Interface
[textbf{Drawing Functions}, name=A
[textbf{Plot Pane}
[textbf{Layer System}
[textbf{Draw onto Canvas}]
[textbf{Clear the Canvas}]
[textbf{Bind Properties}]
]
]
]
[Shared Layer Access, name=C]
[Inputing Functions, name=B
[Add Functions]
[Remove Functions]
[Modify Functions]
]
]
draw[-latex] (A) to[out=east,in=west] (C);
draw[-latex] (B) to[out=west,in=east] (C);
end{forest}
end{document}

Thank you for the warm welcome and the answer!
– Leafy1201
Nov 27 at 22:43
add a comment |
up vote
2
down vote
accepted
Welcome to TeX.SE! Are you looking for calign=child,calign child=2?
documentclass[tikz,border=3.14mm]{standalone}
usepackage[edges]{forest}
usetikzlibrary{arrows.meta}
begin{document}
begin{forest}
for tree={
align=center,
calign=child,calign child=2,
font=sffamily,
edge+={thick, -{Stealth}},
l sep'+=10pt,
fork sep'=10pt,
},
forked edges,
if level=0{
inner xsep=0pt,
tikz={draw [thick] (.children first) -- (.children last);}
}{},
[Graphical User Interface
[textbf{Drawing Functions}, name=A
[textbf{Plot Pane}
[textbf{Layer System}
[textbf{Draw onto Canvas}]
[textbf{Clear the Canvas}]
[textbf{Bind Properties}]
]
]
]
[Shared Layer Access, name=C]
[Inputing Functions, name=B
[Add Functions]
[Remove Functions]
[Modify Functions]
]
]
draw[-latex] (A) to[out=east,in=west] (C);
draw[-latex] (B) to[out=west,in=east] (C);
end{forest}
end{document}

Thank you for the warm welcome and the answer!
– Leafy1201
Nov 27 at 22:43
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Welcome to TeX.SE! Are you looking for calign=child,calign child=2?
documentclass[tikz,border=3.14mm]{standalone}
usepackage[edges]{forest}
usetikzlibrary{arrows.meta}
begin{document}
begin{forest}
for tree={
align=center,
calign=child,calign child=2,
font=sffamily,
edge+={thick, -{Stealth}},
l sep'+=10pt,
fork sep'=10pt,
},
forked edges,
if level=0{
inner xsep=0pt,
tikz={draw [thick] (.children first) -- (.children last);}
}{},
[Graphical User Interface
[textbf{Drawing Functions}, name=A
[textbf{Plot Pane}
[textbf{Layer System}
[textbf{Draw onto Canvas}]
[textbf{Clear the Canvas}]
[textbf{Bind Properties}]
]
]
]
[Shared Layer Access, name=C]
[Inputing Functions, name=B
[Add Functions]
[Remove Functions]
[Modify Functions]
]
]
draw[-latex] (A) to[out=east,in=west] (C);
draw[-latex] (B) to[out=west,in=east] (C);
end{forest}
end{document}

Welcome to TeX.SE! Are you looking for calign=child,calign child=2?
documentclass[tikz,border=3.14mm]{standalone}
usepackage[edges]{forest}
usetikzlibrary{arrows.meta}
begin{document}
begin{forest}
for tree={
align=center,
calign=child,calign child=2,
font=sffamily,
edge+={thick, -{Stealth}},
l sep'+=10pt,
fork sep'=10pt,
},
forked edges,
if level=0{
inner xsep=0pt,
tikz={draw [thick] (.children first) -- (.children last);}
}{},
[Graphical User Interface
[textbf{Drawing Functions}, name=A
[textbf{Plot Pane}
[textbf{Layer System}
[textbf{Draw onto Canvas}]
[textbf{Clear the Canvas}]
[textbf{Bind Properties}]
]
]
]
[Shared Layer Access, name=C]
[Inputing Functions, name=B
[Add Functions]
[Remove Functions]
[Modify Functions]
]
]
draw[-latex] (A) to[out=east,in=west] (C);
draw[-latex] (B) to[out=west,in=east] (C);
end{forest}
end{document}

answered Nov 27 at 22:06
marmot
80.6k491172
80.6k491172
Thank you for the warm welcome and the answer!
– Leafy1201
Nov 27 at 22:43
add a comment |
Thank you for the warm welcome and the answer!
– Leafy1201
Nov 27 at 22:43
Thank you for the warm welcome and the answer!
– Leafy1201
Nov 27 at 22:43
Thank you for the warm welcome and the answer!
– Leafy1201
Nov 27 at 22:43
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462077%2fforest-tree-diagram-arrows-not-aligning%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Welcome! Please post compilable code i.e. a complete example.
– cfr
Nov 28 at 2:43
1
@cfr Sorry my bad, I am using subfiles so I did know what packages were needed, but I will do that next time!
– Leafy1201
Nov 28 at 21:56