×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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?

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)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources