def auto_cmap(labels):
    """
    Find an appropriate color map based on provide labels.
    """
    assert len(labels) <= 20, "Too many labels to support"
    cmap = "Category10_10" if len(labels) <= 10 else "Category20_20"
    return cmap