function bdf
global hndl1 x X bu
        a=get(gca,'CurrentPoint');
        x=[a(1,1); a(1,2)];
        X=[x x];
        bu=-1;
        set(hndl1,'xdata',X(1,1),'ydata',X(2,1));
        drawnow;
