Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

  • Thread starter Thread starter -
  • Start date Start date
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

 
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.

Part and Inventory Search

Sponsor

Back
Top