Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

How to insert text in an axes without the cross pointer?

Status
Not open for further replies.

Guest


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

 
Replies continue below

Recommended for you

Hi,
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)
 
Status
Not open for further replies.
Back
Top