def METHOD_NAME(ax, xlabel=None, ylabel=None, invert=False):
    ax.minorticks_on()
    ax.set_aspect('equal')
    ax.tick_params(axis='both', which='major', labelsize='small')
    for axis in [ax.xaxis, ax.yaxis]:
        axis.set_major_locator(MaxNLocator(5))
        axis.set_minor_locator(AutoMinorLocator(4))
        axis.set_major_formatter(FormatStrFormatter('%d'))
    if invert:
        [i.set_color('white') for i in ax.xaxis.get_ticklines()]
        [i.set_color('white') for i in ax.yaxis.get_ticklines()]
        [ax.spines[s].set_color('white') for s in ax.spines]
    if xlabel is not None:
        ax.set_xlabel(xlabel)
    else:
        plt.setp(ax.get_xticklabels(), visible=False)
    if ylabel is not None:
        ax.set_ylabel(ylabel)
    else:
        plt.setp(ax.get_yticklabels(), visible=False)