def clear_grid(ax, pos=["x","y"]):
    """Clear a grid

    Args:
        ax (Axes)  : The ``Axes`` instance.
        pos (list) : Positions to clean a grid

    Examples:
        >>> from pyutils.matplotlib import clear_grid, FigAxes_create
        >>> fig,ax = FigAxes_create(nplots=1)[0]
        >>> ax = clear_grid(ax=ax, pos=["x", "y"])
        >>> ax = clear_grid(ax=ax, pos=list("ltrb"))
    """
    if isinstance(pos, str):
        pos = [pos]
    for p in pos:
        if p in ["x", "b", "bottom"]:
            ax.tick_params(labelbottom=False, bottom=False)
            ax.set_xticklabels([])
        elif p in ["y", "l", "left"]:
            ax.tick_params(labelleft=False, left=False)
            ax.set_yticklabels([])
        elif p in ["r", "right"]:
            ax.tick_params(labelright=False, right=False)
        elif p in ["t", "top"]:
            ax.tick_params(labeltop=False, top=False)
        elif p == "all":
            ax.set_axis_off()
    return ax