Scatter plot on top of map?

I am trying to plot a scatter plot on top of a map of my area of interest and cannot seem to find a plotting function to do so. What I have so far is a scatter plot of latitude, longitude, and waveheight and want to plot this on top of a map I have generated using worldmap. Any help would be greatly appreciated. Sarah

답변 (1개)

Walter Roberson
Walter Roberson 2013년 3월 13일

0 개 추천

If you are using the mapping toolbox, scatterm()

댓글 수: 6

Sarah
Sarah 2013년 3월 13일
For some reason when I plot scatterm(long,lat,5,wh) the amplitude of the wh is severely reduced. Is there any way to prevent this from happening?
Walter Roberson
Walter Roberson 2013년 3월 13일
You would be plotting in 2D, and the wh would be represented as color in that call.
It does not appear at the moment that there is a scatter3m() call. It would likely be possible to create one, but I do not have the mapping toolbox to experiment with.
There is stem3() if you are trying to show wh in the third dimension.
Sarah
Sarah 2013년 3월 14일
I essentially want to plot wh as the colour of the points at the different latitudes and longitudes. Would stem3() do this on top of my existing map?
Walter Roberson
Walter Roberson 2013년 3월 14일
If you do want to represent wh as color then scatterm() is the appropriate one.
Could you explain further about "the amplitude of the wh is severely reduced" ?
Sarah
Sarah 2013년 3월 14일
What I mean is that I want the color bar to represent the values recorded int he wh variable but when I plot this as scatterm(long,lat,5,wh) the values in the wh vector are changed and reduced from their original values

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

카테고리

도움말 센터File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

질문:

2013년 3월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by