1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
.. jupyter-execute::
:hide-code:
import set_working_directory
Angular Dendrogram Style
========================
This is a left-right style. You'll note that there's overlap of edges at the bottom -- a known issue with this display style.
.. jupyter-execute::
from cogent3.app import io
reader = io.load_json()
ens_tree = reader("data/GN-tree.json")
fig = ens_tree.get_figure(style="angular", width=600, height=600)
fig.show()
With Contemporaneous Tips
-------------------------
.. jupyter-execute::
fig.contemporaneous = True
fig.show()
.. jupyter-execute::
:hide-code:
outpath = set_working_directory.get_thumbnail_dir() / "plot_tree-angular.png"
fig.write(outpath)
|