- Please refer to this MATLAB Answer : Plot and Hover
 - Make a list of country name corresponding to there latitude and longitude by yourself.
 - Make some changes in the above MATLAB Answer code accordingly.
 
How to add label to geoscatter when havering over the datapoint
    1 visualizzazione (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Ferry Nieuwland
 il 10 Set 2022
  
    
    
    
    
    Commentato: Ferry Nieuwland
 il 11 Ott 2022
            Hello Community,
Below a very simple script that plots tsunamis on a map. When you hoover over a datapoint you only see the Latitude and Longitide. How can I add i.e. the Contry to this label when moving the mouse over the point? I don't want to plot up all the countries; that would make the plot too busy. I only want to see the country when going with the mouse over the point. How can I display this information. Any thoughts?
tsunamis = readtable('tsunamis.xlsx');
geoscatter(tsunamis.Latitude,tsunamis.Longitude)
Thanks,
Ferry
0 Commenti
Risposta accettata
  Vishesh
    
 il 6 Ott 2022
        Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Axis Labels in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!