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 ExchangeData 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