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
New contributor
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
New contributor
Welcome! Please post compilable code i.e. a complete example.
– cfr
5 hours ago
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
New contributor
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
New contributor
New contributor
New contributor
asked 10 hours ago
Leafy1201
133
133
New contributor
New contributor
Welcome! Please post compilable code i.e. a complete example.
– cfr
5 hours ago
add a comment |
Welcome! Please post compilable code i.e. a complete example.
– cfr
5 hours ago
Welcome! Please post compilable code i.e. a complete example.
– cfr
5 hours ago
Welcome! Please post compilable code i.e. a complete example.
– cfr
5 hours ago
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
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
9 hours ago
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
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
9 hours ago
add a comment |
up vote
3
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
9 hours ago
add a comment |
up vote
3
down vote
accepted
up vote
3
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 9 hours ago
marmot
78.7k487166
78.7k487166
Thank you for the warm welcome and the answer!
– Leafy1201
9 hours ago
add a comment |
Thank you for the warm welcome and the answer!
– Leafy1201
9 hours ago
Thank you for the warm welcome and the answer!
– Leafy1201
9 hours ago
Thank you for the warm welcome and the answer!
– Leafy1201
9 hours ago
add a comment |
Leafy1201 is a new contributor. Be nice, and check out our Code of Conduct.
Leafy1201 is a new contributor. Be nice, and check out our Code of Conduct.
Leafy1201 is a new contributor. Be nice, and check out our Code of Conduct.
Leafy1201 is a new contributor. Be nice, and check out our Code of Conduct.
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
5 hours ago