def dim_axis_label ( dimensions , separator = ', ' ) : if not isinstance ( dimensions , list ) : dimensions = [ dimensions ] return separator . join ( [ d . pprint_label for d in dimensions ] )
python autoformat axis labels
Returns an axis label for one or more dimensions .
def dim_axis_label(dimensions, separator=', '):
    """
    Returns an axis label for one or more dimensions.
    """
    if not isinstance(dimensions, list): dimensions = [dimensions]
    return separator.join([d.pprint_label for d in dimensions])