def _decide_legend_pos(adata, color):
    """Decide about the default legend position"""
    if color is None:
        return "none"
    elif color == "clonotype":
        return "on data"
    elif adata.obs[color].unique().size <= 50:
        return "right margin"
    else:
        return "none"