Clear Filters
Clear Filters

How to plot values of respective longitude and latitude coordinates with M_maps package?

7 views (last 30 days)
Hello everybody,
I am currently trying to plot some simple values onto their respective lon/lat coordinates, for a global (hammer aitoff) projection. So far I've been using M_scatter, but I run into some problems when going too much north / south, because the lon/lat values get too close to each other due to the curvature of the Earth, and the "bubbles" of the scatterplot begin overlapping.
I am working with 3 vectors, the first 2 are latitude and longitude vectors (data(:,1) & data(:,2)) of size 64800 (180x360 coordinates) each, and the third vector is the vector containing the data values data(:,3), also of size 64800. So, so far I've been trying to plot it like this:
m_scatter(data(:,1),data(:,2),100,data(:,3))
and then some m_grid, etc. on top of it.
Is there a way to plot these values, with this projection, without facing this problem and being dependant on the bubblesize of the scatter plot? I tried looking at m_pcolor with an interpolation, but this is wrong because I will end up oversampling my signal.
Sincerely, Jonathan Gundorph

Answers (0)

Community Treasure Hunt

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

Start Hunting!