def _is_colorbar_heuristic(obj):
    """Find out if the object is in fact a color bar.
    """
    try:
        aspect = float(obj.get_aspect())
    except ValueError:
        return False
    limit_ratio = 5.0
    return aspect >= limit_ratio and len(obj.get_xticks()
        ) == 0 or aspect <= 1.0 / limit_ratio and len(obj.get_yticks()) == 0
