How to insert text in an axes without the cross pointer?
How to insert text in an axes without the cross pointer?
(OP)
How to insert text in an axes without the cross pointer?
I need to insert text in an axes in my program at any
point where I do click with the mouse. To do that I use
the "ginput" command. The trouble is it add a cross pointer
which cover all screen. I would like to do the same
without the cross pointer. Simply, I want to insert text
where I put the mouse and after doing click.
Can you help me?
Thanks
Cris





RE: How to insert text in an axes without the cross pointer?
You have to write a program of your own for that. Here is one (not debugged):
function my_ginput(Stringula)
waitforbuttonpress
R=get(gca,'currentpoint');
text(R(1,1),R(1,2),stringula)