def modify_axis(axs, xtick_label, ytick_label, xoffset, yoffset, fontsize, grid=True):
    """Change properties of plot axis to make more beautiful"""
    axs.spines['top'].set_visible(False)
    axs.spines['bottom'].set_visible(True)
    axs.spines['left'].set_visible(True)
    axs.spines['right'].set_visible(False)
    bottom = 'off'
    left = 'off'
    if xtick_label != '':
        bottom = 'on'
        axs.get_xaxis().tick_bottom()
    if ytick_label != '':
        left = 'on'
        axs.get_yaxis().tick_left()
    axs.tick_params(
        axis="both",
        which="both",
        bottom="on",
        top=False,
        labelbottom=bottom,
        left="on",
        right=False,
        labelleft=left
    )
    if grid:
        axs.grid(True, linewidth=0.4, zorder=0, linestyle='-', which='major')
    if xtick_label != '':
        labels = axs.get_xticklabels()
        labels[xoffset] = xtick_label
        axs.set_xticklabels(labels)
        for label in axs.get_xticklabels():
            label.set_fontsize(fontsize)
    if ytick_label != '':
        labels = axs.get_yticklabels()
        labels[yoffset] = ytick_label
        axs.set_yticklabels(labels)
        for label in axs.get_yticklabels():
            label.set_fontsize(fontsize)
    return axs