Forest tree diagram - arrows not aligning











up vote
2
down vote

favorite
1












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:
enter image description here



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.










share|improve this question






















  • 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















up vote
2
down vote

favorite
1












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:
enter image description here



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.










share|improve this question






















  • 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













up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





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:
enter image description here



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.










share|improve this question













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:
enter image description here



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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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


















  • 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










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}


enter image description here






share|improve this answer





















  • Thank you for the warm welcome and the answer!
    – Leafy1201
    Nov 27 at 22:43











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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

























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}


enter image description here






share|improve this answer





















  • Thank you for the warm welcome and the answer!
    – Leafy1201
    Nov 27 at 22:43















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}


enter image description here






share|improve this answer





















  • Thank you for the warm welcome and the answer!
    – Leafy1201
    Nov 27 at 22:43













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}


enter image description here






share|improve this answer












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}


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










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


















  • 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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

How to send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?