def removeTicksAndLabels(ax):
    """Deletes all the ticks and labels from the plot axes passed as argument.

    Parameters
    ----------
    ax: Matplotlib axes.
        Can be obtained from a figure with: fig.get_axes()[0]

    Returns
    -------
    ax
        Returns the changed ax with the modification performed.

    """
    ax.set_xticklabels([])
    ax.set_yticklabels([])
    ax.set_xticks([])
    ax.set_yticks([])
    return ax
