필터 지우기
필터 지우기

Output geobubble marker size to geoscatter to plot

조회 수: 4 (최근 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 CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by