in analysis/analyze.py [0:0]
def makePlotLabels(column=alt.Undefined, row=alt.Undefined,
normalize_by=None, normalize_by_sqrt=False,
base_title="Error"):
# make title
if column != alt.Undefined and row != alt.Undefined:
title_group = f" by {column} x {row}"
elif column != alt.Undefined:
title_group = f" by {column}"
elif row != alt.Undefined:
title_group = f" by {row}"
else:
title_group = ""
title = f"{base_title}{title_group}"
if normalize_by is None:
yaxis = 'Error'
elif normalize_by_sqrt:
yaxis = 'Error * sqrt(size)'
else:
yaxis = 'Error * size'
return title, yaxis