neurom.view.common.get_color

neurom.view.common.get_color(treecolor, tree_type)

If treecolor is None returns the color depending on the type: Basal dendrite: “red” Axon : “blue” Apical dendrite: “purple” Soma tree: “black” Undefined or any other type: “green” Otherwise returns the treecolor.