def METHOD_NAME():
    global xlabel,ylabel
    x = d[:,Xvar.get()]
    y = d[:,Yvar.get()]
    if xlabel.get() != "X-axis label":
        hx = xlabel.get()
    else:
        hx = h[Xvar.get()]
    if ylabel.get() != "Y-axis label":
        hy = ylabel.get()
    else:
        hy = h[Yvar.get()]
    p.plot(x, y, 'o')
    p.xlabel(hx)
    p.ylabel(hy)
    p.show() 