def _neurite_name(neurite, prefix, names):
    """The neurite name used for the legend"""
    name = str(neurite.type).replace('NeuriteType.', '').replace('_', ' ')
    return '{} {} {}'.format(prefix, name, names[neurite.type])
