Hey everyone!
I am trying to do a color map/heat map of Asia continent. I have my values for my color map in terms of a 70x110 double array and I want to plot at a resolution of it at every 0.5 latitude and longitude.
I have tried the following:
load coastlines
X = [0.25:0.5:34.75] ;
Y = [65.25:0.5:119.75];
Q = pcolor(Y,X,A);
Q.FaceColor = 'interp';
set(Q, 'EdgeColor','none')
H= colormap(flipud(jet));
hold on
coast = plot(coastlon, coastlat,'Color','k');
grid on;
colorbar
xlabel('Longitude')
ylabel('Latitude')
I am able to get a decent looking map but I realised that due to the resolution the colored box is out of the coast border and it is not presentable for me. Is there any solution to this? Also is there anyway to countries borders drawn as well?