def setup_axis(ax, ylabel=None, xlabel=None, ylim_top=None, xlim_right=None):
    ax.xaxis.set_major_locator(MaxNLocator(integer=True))
    ax.set_ylabel(ylabel)
    ax.set_xlabel(xlabel)
    ax.set_ylim(top=ylim_top)
    ax.set_xlim(right=xlim_right)
def setup_axis(ax, ylabel=None, xlabel=None, ylim_top=None, xlim_right=None):
    ax.xaxis.set_major_locator(MaxNLocator(integer=True))
    ax.set_ylabel(ylabel)
    ax.set_xlabel(xlabel)
    ax.set_ylim(top=ylim_top)
    ax.set_xlim(right=xlim_right)