1

Hi my questions is related to

Labeling points in order in a plot

and

Data label on each entry in xy scatter

but I would like to make the label visible only when the user clicks on the corresponding coordinate. My graph has a lot of points on the scatter plot(172) and hence infeasible to label all.

Thanks

Community
  • 1
  • 1
Lipika Deka
  • 3,774
  • 6
  • 43
  • 56
  • 3
    An easy way might be to utilize the datacursormode and use user-defined update function. See http://stackoverflow.com/a/11242506/1351522 and http://www.mathworks.de/help/techdoc/ref/datacursormode.html – H.Muster Oct 09 '12 at 11:01
  • @H.Muster Your pointer works...Thanks – Lipika Deka Oct 09 '12 at 15:05
  • Great! Why don't you post your working solution as an answer here (and accept it)? It might help other people. – H.Muster Oct 09 '12 at 16:34

0 Answers0