def pretty(X, format='%0.3f'):
    """
    Returns a formatted string for a numpy array ``X``. \n
    Example: [1,2,3], %0.3f => 1.000    2.000    3.000

    """
    format = format + '\t'
    return ''.join(format % x for x in X)