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

Fan (limited angle circular) tree layout #74

Open ilevantis opened 1 year ago

ilevantis commented 1 year ago

It would be great to have an option to limit the angular span of a circular layout tree.

i.e. what ggtree calls a fan layout, or what can be achieved with the arc_span argument in ETE.

eaton-lab commented 11 months ago

Hi @ilevantis,

This is currently available in the branch "toy3" and will soon be available in the v.3.0 release. Additional arc plotting annotations are also in the works. The circular layout argument (layout="c") can accept integer start and end points in as degree arguments between 0-360, like below:

image

image