TransWikia.com

`graphdrawing` - One `phylogenetics` example fails

TeX - LaTeX Asked on May 29, 2021

The following example comes from the PGF documentation (see page 485).

documentclass[12 pt]{article}

usepackage{tikz}
usetikzlibrary{graphs,graphdrawing}
usegdlibrary{phylogenetics}

begin{document}

tikz graph[phylogenetic tree layout,
       upgma,
       distance matrix = {
        0 4 9 9 9 9 9 
        4 0 9 9 9 9 9
        9 9 0 2 7 7 7 
        9 9 2 0 7 7 7 
        9 9 7 7 0 3 5 
        9 9 7 7 3 0 5
        9 9 7 7 5 5 0 }]
{ a, b, c, d, e, f, g }; 

end{document}

This gives…

enter image description here

Instead of

XXXX

Is it a bug or is there a missing configuration in my code?

One Answer

No bug, the style of the nodes is determined by the /graph drawing/phylogenetic inner node style. This is by default empty, but in the manual it is defined as described in the section immediately following the example:

enter image description here

Copy the pgfgdset{..} to your preamble to get the same output as in the manual.

Correct answer by Torbjørn T. on May 29, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP