def get_axis_label(data_type):
    if data_type == "time":
        label = "Time"
    elif data_type[0] in common_complexity.COMPLEXITY_TYPES:
        label = "Complexity (" + common_complexity.get_name(data_type) + ")"
    else:
        label = common_metric.get_name(data_type)

    return label
Esempio n. 2
0
def get_axis_label(data_type):
    if data_type == 'time':
        label = 'Time'
    elif data_type[0] in common_complexity.COMPLEXITY_TYPES:
        label = 'Complexity (' + common_complexity.get_name(data_type) + ')'
    else:
        label = common_metric.get_name(data_type)

    return label
Esempio n. 3
0
def get_axis_label(data_type):
	if data_type == 'time':
		label = 'Time'
	elif data_type == 'neuronCount':
		label = 'Neuron Count'
	elif data_type == 'synapseCount':
		label = 'Synapse Count'
	elif data_type[0] in common_complexity.COMPLEXITY_TYPES:
		label = 'Complexity (' + common_complexity.get_name(data_type) + ')'
	else:
		label = common_metric.get_name(data_type)
	
	return label