Note
Click here to download the full example code
Display a Phylogenetic Tree with a Circular Dendrogram StyleΒΆ
from cogent3.app import io
reader = io.load_json()
ens_tree = reader("../../data/GN-tree.json")
fig = ens_tree.get_figure("circular", width=600, height=600)
fig.show()
Colouring a set of edgesΒΆ
fig.style_edges("AfricanEl", tip2="Manatee", legendgroup="Afrotheria",
line=dict(color="magenta", width=2))
fig.show()
With Contemporaneous TipsΒΆ
fig.contemporaneous = True
fig.label_pad = 0.23
# sphinx_gallery_thumbnail_number = 3
fig.show(width=550, height=500)
Total running time of the script: ( 0 minutes 0.846 seconds)