I am plotting a contour over the mercator(planar) world map in MATLAB.
And I am successful but when I use the
geoshow('landareas.shp','FaceColor', [0.5 1.0 0,5])
it eliminates the contour plot on the map.
My code is:
axesm('mercator','MapLatLimit',[-50 90],'MapLonLimit',[0 250])
frame on;
grid on;
plotm(lat,long,'k')
contourfm(x,y,z)
Is there anyway to apply the
geoshow('landareas.shp','Display',[0.5 1.0 0.5])
I do not know what exactly you would like to achieve so if my answer will be in a wrong direction we can elaborate more.
I used this code to produce a map with
contourfmand'landareas':Instead of
geoidyou can have your own map but pay attention on the number of grid points. As far as I know they have to be 180×360.One note. You may consider to use
coastin stead oflandareasbecausecontourfmproduces all colour map and'landareas'has also colours. So if it suit you, you can put only coast lines instead: