neurom.view.common.get_color

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

If treecolor is None returns the color depending on the type, otherwise it returns the treecolor.

Returns: str color

basal dendrite: red

axon : blue

apical dendrite: purple

soma: black

undefined or any other type: green