Add labels to multiple points in scatterplot

5 次查看(过去 30 天)
Hi!
I have a scatterplot that contains multiple points with its personal ID number. I need help to include a small text to specify the season each sample was taken (may, july, and december). I want each text box to be right next to its specific ID value everytime I run the code.
Including a simple text box is not an option because I am using multiple data points.
Attached is a screenshot of my plot, code, and xls file I am using.
Thank you in advance!

回答(1 个)

Simon Chan
Simon Chan 2022-11-4
Read about datatip.

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by