neat.MorphTree.set_node_colors¶
- MorphTree.set_node_colors(startnode=None, scheme='iterator')[source]¶
Set the color code for the nodes for 1D plotting
- Parameters:
scheme (str (default: 'iterator')) – scheme for coloring the nodes. Options are: ‘iterator’: colors nodes in depth-first order ‘depth’: colors nodes based on distance to leafs ‘random’: colors nodes randomly
startnode (neat.MorphNode (optional)) – node from which to start coloring. If None, starts from root