Output geobubble marker size to geoscatter to plot

3 views (last 30 days)
I would like to input the size of makers I have from geobubble.m to geoscatter.m, which uses marker sizes in units of points, so I can have to directly comparative figures.
The geobubble call that I run looks something like this:
gx = geobubble(gx.Parent,Event.EventLatitude, Event.EventLongitude,Event.EventSize,b,'Title','Events');
The geoscatter call that I run looks something like this:
geoscatter(gx2,Event.EventLatitude,Event.EventLongitude,msz,'Marker','o','MarkerFaceColor',mcol,'linewidth',1.5,'MarkerEdgeColor',mcol);
I would like each row of size marker that msz stores to match the bubble size that the geobubble.m plot outputs.
I cannot solve this by plotting lines directly on a geobubble.m plot, as the geobubble.m plot does not support lines or "hold on" because a geobubble axes and geoaxes are not commensurate.

Answers (1)

Githin George
Githin George on 9 Nov 2023
Hello,
My understanding is that you are having a geoscatter plot and a geobubble plot for some data and would like to have the same size for the markers in both the plots.
Both geoscatter” and “geobubblefunctions return a MATLAB graphics object with the property SizeData’ which contains the corresponding size of the markers for each data point. You could try modifying this property for your graphics object to get the desired output. Please look at the below documentation links to see the full property list forgeoscatter” and “geobubble” plots.
I hope this provides some insights for your case.

Categories

Find more on Geographic Plots in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!