How to add a bubble size legend to a geoscatter plot
Show older comments
I have made a geoscatter plot with parameter 1 being indicated with the colour of the bubble and parameter 2 being indicated by the size of the bubble. I have inserted a colorbar indicating the values for paramater 1. But is there a way I could I add a legend for the size of the bubble on the figure as well or is there a different way to work around the problem?
I just want a way to show the legend for the size of the bubbles as well as the colorbar
s=geoscatter(lat,lon,total,sgi,"filled");
geobasemap streets-dark
geolimits([49.5 60], [-5 -2]);
c.Ticks = [-2 -1.5 -1 0];
clim ([-3 0])
c = colorbar('eastoutside');
c.Label.String = "SGI";
title('Spatial plot of SGI and total drought duration for 1970s')
colormap parula(100);
Accepted Answer
More Answers (0)
Categories
Find more on Geographic Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!