def label(field):
    """
    Construct a label for a data field suitable for use on a graph axis.
    """
    if hasattr(field,'Along_name'):
        return field.Along_name.nxdata
    else:
        return "%s (%s)"%(field.nxname,field.Aunits.nxdata)