Output geobubble marker size to geoscatter to plot
3 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Githin George
2023-11-9
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 “geobubble” functions 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 for “geoscatter” and “geobubble” plots.
I hope this provides some insights for your case.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Geographic Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!