def axis_event(win, plot, figure, coloraxis, axlw, laxlw, labelcolor, conf):
    """
    This function change the axis of the plot.
    Parameters:
    -----------
    win         FigureCanvas, obj
    plot        subplot, obj
    figure      Figure, obj
    coloraxis   QComboBox widget
    axlw        QspinBox    ''  
    laxw        QspinBox    ''
    labelcolor  QComboBox   ''
    """
    color = coloraxis.currentText()
    lw = axlw.value()
    llw = laxlw.value()
    lcolor = labelcolor.currentText()
    conf['Color'] = color
    conf['Label_color'] = lcolor
    conf['lw'] = lw
    conf['Labelsize'] = llw
    plot.xaxis.label.set_size(llw)
    plot.yaxis.label.set_size(llw)
    plot.xaxis.label.set_color(lcolor)
    plot.yaxis.label.set_color(lcolor)
    for spine in plot.spines.values():
        spine.set_edgecolor(color)
        spine.set_linewidth(lw)
    figure.tight_layout()
    win.draw()
