Flattens tree intree into the XY plane by conserving the lengths of the individual compartments. (similar to “morph_tree” but not similar enough to make one function)

TREES

Example:

>> flatten_tree (sample2_tree, '-s -m')

[0, 10, 20, 29, 38, 47, 57, 67, 53, 27, 36, 43, 51, 54, 35]

See demo movie with option '-m'

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License