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

Answers (1)

Walter Roberson
Walter Roberson on 13 Mar 2013

0 votes

If you are using the mapping toolbox, scatterm()

6 Comments

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?
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.
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?
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" ?
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

Sign in to comment.

Asked:

on 13 Mar 2013

Community Treasure Hunt

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

Start Hunting!