def remove_ticks_labels(ax, remove_x=True, remove_y=True):
    """Remove ticks and labels from axes"""
    if remove_x:
        ax.set_xticklabels([])
        ax.set_xticks([])
    if remove_y:
        ax.set_yticklabels([])
        ax.set_yticks([])
