Adding mouse over data tips to text in a figure

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

Nikhil Sreekumar
Nikhil Sreekumar 2017년 4월 25일
편집: Nikhil Sreekumar 2017년 4월 25일
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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Text Data Preparation에 대해 자세히 알아보기

제품

질문:

2017년 4월 21일

편집:

2017년 4월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by