Geoscatter point size in km

조회 수: 4 (최근 30일)
Iacopo Torre
Iacopo Torre 2019년 8월 19일
댓글: dpb 2019년 8월 20일
Hello,
I am trying to show some point on a geoscatter plot, but I am not able to set the right size.
Let's say I want to plot a 500km*500km circle on the equator line, coordinates 0,0 , how can I apply the size? (on the equator, otherwise it should be bigger depending on the latitude).
This is what I found in the documentation: "Specify the values in point units, where one point equals 1/72 inch. To specify a marker that has an area of one square inch, use a value of 72^2."
I found that 1 cm is around 28 point units, so I tried to set a size of pi*(250km*28.346^2) (it is a circle, so the area is pi*r^2), but the scale depends from the zoom level and the size of the chart.
Moreover I think it should not be a circle, unless it is plotted on the equator line, but a ellipse because of the proportions, how can I plot it?
Thank you
  댓글 수: 1
darova
darova 2019년 8월 20일
Can't you manually draw an ellipse?

댓글을 달려면 로그인하십시오.

답변 (1개)

dpb
dpb 2019년 8월 19일
I don't have the mapping TB so can't experiment, but looks like <geobubble> would be better suited to the purpose as it does have a scaled to an input data array size argument. It doesn't appear to have the sophistication to do more than draw a circle on the map at the location, however; no projection onto the surface.
  댓글 수: 2
Iacopo Torre
Iacopo Torre 2019년 8월 20일
편집: Iacopo Torre 2019년 8월 20일
Thank you for your suggestion, I had a look at geobubble, it's really nice, although it still does not allow me to choose a real scale in cm/km, so some bubbles are bigger, some smallers, but they do not respect the scale.
dpb
dpb 2019년 8월 20일
I think you can make do so by judicious selection of the various parameters. But, plot uses points as diameter for marker while scatter is scaled to area so you can compute the needed size values.
Not having the TB I can't experiment directly but there are a couple other parameters that work with the size array to set the actual drawn diameter.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by