Output geobubble marker size to geoscatter to plot

3 ビュー (過去 30 日間)
Joshua Carmichael
Joshua Carmichael 2022 年 5 月 19 日
回答済み: Githin George 2023 年 11 月 9 日
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.

回答 (1 件)

Githin George
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 “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.

カテゴリ

Help Center および File ExchangeGeographic Plots についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by