From: Stefan Heinen on
Hey everyone,

I just asked a question, thus anyone know a command, like ginput, for precise clicking on a graph. A solution ussing the data cursor:

datacursormode on
display('Select wanted point')
pause
dcm_obj = datacursormode(fig1);
cursor_info = getCursorInfo(dcm_obj);
cursor_info.Position

I liike to pause until I selected the right point.
Is there a command that pauses until pressing 'enter' or a key like that.

Thx,

Stefan
From: Richard-Hsu on
On May 22, 5:06 am, "Stefan Heinen" <s.g.h.hei...(a)live.com> wrote:
> Hey everyone,
>
> I just asked a question, thus anyone know a command, like ginput, for precise clicking on a graph. A solution ussing the data cursor:
>
> datacursormode on
> display('Select wanted point')
> pause
> dcm_obj = datacursormode(fig1);
> cursor_info = getCursorInfo(dcm_obj);
> cursor_info.Position
>
> I liike to pause until I selected the right point.
> Is there a command that pauses until pressing 'enter' or a key like that.
>
> Thx,
>
> Stefan

Yes, you can substitute 'pause' by
>>keyboard
so that the running goes on after you press any key board.