stat_to_string

mastml.plot_helper.stat_to_string(name, value, nice_names)[source]

Method that converts a metric object into a string for displaying on a plot

Args:

name: (str), long name of a stat metric or quantity

value: (float), value of the metric or quantity

Return:

(str), a string of the metric name, adjusted to look nicer for inclusion on a plot