gscatter - attach label to each datapoint
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ine Lading
am 22 Feb. 2021
Beantwortet: Shadaab Siddiqie
am 25 Feb. 2021
How can I attach the grouping labels to each individual "scatter dot" in a scatter plot, using the gscatter function?
I am plotting x = Percentage GDP growth per country against y = Covid-19 performance index (score 1-100) per country. Naturally, 174 countries makes the legend long and difficult to interpret, and the colors that separate the different groups are often so similar it's impossible to spot the difference between them. Is it possible to attach the name of the country to the specific dot in the scatter plot? Or does anyone have a better suggestion as to how I can display my data?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/527549/image.png)
0 Kommentare
Akzeptierte Antwort
Shadaab Siddiqie
am 25 Feb. 2021
From my understanding you want to label each data point in a plot. Here is a reference which might help you.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!