Debian Codegraph @

texmf-dist/doc/generic/pgf/pgfmanual-en-gd-phylogenetics.tex

raw
1 % Copyright 2018 by Sarah Mäusle and Till Tantau
2 %
3 % This file may be distributed and/or modified
4 %
5 % 1. under the LaTeX Project Public License and/or
6 % 2. under the GNU Free Documentation License.
7 %
8 % See the file doc/generic/pgf/licenses/LICENSE for more details.
9
10
11 \section{Graph Drawing Layouts: Phylogenetic Trees}
12 \label{section-library-graphdrawing-phylogenetics}
13
14 {\noindent {\emph{by Sarah Mäusle and Till Tantau}}}
15
16 \ifluatex
17 \else
18 This section of the manual can only be typeset using Lua\TeX.
19 \expandafter\endinput
20 \fi
21
22 \tikzset{/graph drawing/phylogenetic inner node/.style={
23 /tikz/.cd,
24 draw, circle, inner sep=0pt, minimum size=5pt}
25 }
26 \tikzset{/graph drawing/phylogenetic edge/.style={
27 /tikz/.cd,
28 thick, rounded corners,edge node={node[auto,font=\tiny, inner sep=2pt]{}}}
29 }
30
31 \includeluadocumentationof{pgf.gd.phylogenetics.library}
32 \includeluadocumentationof{pgf.gd.phylogenetics.PhylogeneticTree}
33
34
35 \subsection{Generating a Phylogenetic Tree}
36
37 ... \todosp{I guess something should be added here, right?}
38
39 When a phylogenetic tree is generated, new nodes and edges get created. In
40 order to give you a chance at styling them, the following styles are executed:
41
42 \begin{stylekey}{/graph drawing/phylogenetic inner node}
43 The style is added every newly created inner node. In this manual, this key
44 is set to:
45 %
46 \begin{codeexample}[code only]
47 \pgfgdset{phylogenetic inner node/.style={
48 /tikz/.cd, draw, circle, inner sep=0pt, minimum size=5pt
49 }
50 }
51 \end{codeexample}
52 %
53 \end{stylekey}
54
55 \begin{stylekey}{/graph drawing/phylogenetic edge=\meta{length}}
56 The style is added every newly created phylogenetic edge. The \meta{length}
57 will be set to the computed evolutionary length of the edge. In this
58 manual, this key is set to:
59 %
60 \begin{codeexample}[code only]
61 \pgfgdset{phylogenetic edge/.style={
62 /tikz/.cd, thick, rounded corners
63 }
64 }
65 \end{codeexample}
66 %
67 \end{stylekey}
68
69 \includeluadocumentationof{pgf.gd.phylogenetics.AuthorDefinedPhylogeny}
70 \includeluadocumentationof{pgf.gd.phylogenetics.SokalMichener1958}
71 \includeluadocumentationof{pgf.gd.phylogenetics.BalancedMinimumEvolution}
72 \includeluadocumentationof{pgf.gd.phylogenetics.BalancedNearestNeighbourInterchange}
73
74
75 \subsection{Laying out the Phylogram}
76
77 \includeluadocumentationof{pgf.gd.phylogenetics.Maeusle2012}
78
79
80 %%% Local Variables:
81 %%% mode: latex
82 %%% TeX-master: "pgfmanual-pdftex-version"
83 %%% End: