Adding mouse over data tips to text in a figure

17 visualizaciones (últimos 30 días)
Icyfire8894
Icyfire8894 el 21 de Abr. de 2017
Editada: Nikhil Sreekumar el 25 de Abr. de 2017
In the scatter plot below, it can be difficult to read the text values shown in each green box. I would like to have a data tip appear when the user scrolls over the text, to display the text in a data tip. How would I go about doing that?
I generate the text using the following code in a loop:
text(xPos,yPos,GrayCode,'FontWeight','bold','FontSize',20);
  1 comentario
Nikhil Sreekumar
Nikhil Sreekumar el 25 de Abr. de 2017
Editada: Nikhil Sreekumar el 25 de Abr. de 2017
Hi there,
The data that comes on hover over particular points in the graph can be modified by updating the data tip's update function in the datacursormode. have a look into the following documentation links:
Try this out and if you have a difficulty, post it here.
Thanks
Nikhil

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Annotations en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by