import toytree
toytree.__version__

"""
Explanation: Issue #42
I am a new user of toytree tool, could you tell me please how can I change the position of inner nodes added custom labels. For examble I want to plot some new_added features above or below or right the branches . Could you help me with this please?

Please see the documentation: https://toytree.readthedocs.io
End of explanation
"""


tree = toytree.rtree.unittree(10)
tree.draw(ts='s');

"""
Explanation: Get a random tree and show node indices
End of explanation
"""


tree = tree.set_node_values(
    feature="custom",
    values={16: "black", 13: "black", 11: "black"},
    default="goldenrod",
)

tree.draw(
    node_sizes=14, 
    node_colors=tree.get_node_values("custom", 1, 1),
);

"""
Explanation: Set custom node labels
End of explanation
"""


tree.draw(
    
    # show 'custom' label at all nodes 
    node_labels=tree.get_node_values("custom", True, True),  
    
    # offset the node labels to the left and up
    node_labels_style={
        "-toyplot-anchor-shift": "5px",
        "baseline-shift": "5px",
        "fill": "red",
        "font-size": "12px"
    }
);

"""
Explanation: Show a node feature (e.g., int or str) next to the node
End of explanation
"""


