How to add latitude and longitude into a map made by geoshow

2 views (last 30 days)
I am currently using geoshow to plot the data I obtained. But there are two problems appears.
1.As you can see in the following pictures, the 1st does not have latitude and longitude number, and the 2nd do. How can I add the numbers and characters on the figure? I use geoshow since my matrix is 144*72. I tried worldmap('World'), but it just makes my graph disappears.
2.In my dataset, there are some NAN values in the matrix. I hope to plot them as blank( white is the best). However, the graph shows that NaN values are the smallest, not white. I tried set (imagesc(data'),'AlphaData',~isnan(data')) it works well in a rectangular graph, which works fine. But when I use it in geoshow, it does not work at all!
Here is the code I do the plot
attempt=(Ave_temp(1:1:144,1:1:72))';
dx=360/144;
dy=180/72;
axesm Robinson;
framem;
frame=makerefmat(-180,90,dx,-dy);
geoshow(attempt,frame,'DisplayType','texturemap');
load coast;
plotm(lat,long)
colorbar
gridm;
Many thanks

Answers (0)

Community Treasure Hunt

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

Start Hunting!