eaton-lab / toytree

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

help wanted: edge_label #18

Closed zhh210 closed 5 years ago

zhh210 commented 6 years ago

Hello,

Thanks a lot for developing toytree! I'm wondering if it is possible to add label for edge as well? Any comment on which part of the code could be revised to add this feature is welcomed.

eaton-lab commented 5 years ago

You can find an example below, where node labels are shifted to edges using style options. I could imagine creating a dedicated function to place values on the midpoint of edges, but I haven't developed something like that yet.

https://toytree.readthedocs.io/en/latest/Cookbook.html#4.-Variable-edge-colors-and-widths