Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

consider this example:

LocatorPane[Dynamic[pt],
 Plot[Sin[x], {x, 0, 10}, 
  Epilog -> {PointSize[Large], Point[Dynamic[pt]]}, 
  PlotLabel -> Dynamic@pt], Appearance -> None]

I am trying to add Tooltip to the pt but without any success. the only thing I got is using Tooltip with the point like this: Tooltip@Point[Dynamic[pt]] but this will show the word Point also. any solution to use Tooltip with the point pt

thanks

share|improve this question

Does this do what you desire?:

LocatorPane[Dynamic[pt], 
 Plot[Sin[x], {x, 0, 10}, Epilog -> {PointSize[Large], Dynamic @ Tooltip[Point[pt], pt]}, 
  PlotLabel -> Dynamic@pt], Appearance -> None]
share|improve this answer
    
Yap, than you :) – Algohi Aug 15 '14 at 2:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.