eaton-lab / toytree

A minimalist tree plotting library using toyplot graphs
http://eaton-lab.org/toytree
BSD 3-Clause "New" or "Revised" License
164 stars 28 forks source link

Fixed bug for visualizations using layout 'd' #76

Closed cndewey closed 10 months ago

cndewey commented 10 months ago

Commit 09a02b6885064df617a55183577efca291f00ccf broke visualizations using layout 'd' due to change from an elif to an if statement. This resulted in visualizations with tree_style = 'c' looking like

example2_newick = "((A:3, B:3):1, ((C:1, D:1):2, E:3):1);"
example2_tree = toytree.tree(example2_newick)
example2_tree.draw(tree_style="c", tip_labels=True, node_labels=False);
Screenshot 2023-10-22 at 8 44 38 AM

This pull request reverts the bug-creating elif->if change.

eaton-lab commented 10 months ago

Thanks!