如何在不看到背景轮廓的情况下叠加地图?

时间:2018-07-29 20:38:07

标签: plot overlay octave contour figure

当我在阴影轮廓上方绘制蓝色地图时,会得到附件图像。如何在不看到轮廓的情况下绘制上面的地图?

close all; clear all; clc;
% x, y and v are arrays of 64x1
[xq,yq]=meshgrid(-84.5:-70.5,-3.5:-1:-18.5);
vq = griddata(x,y,v,xq,yq);
figure('Visible','off')
m1=min(min(vq));
m2=max(max(vq));
rg=[m1:m2];
vq(isnan(vq)) = -inf;
[c,h]=contourf(xq,yq,vq,rg);
clabel(c,h,rg,'fontsize',6);
hold on
[lat,lon]=borders('peru');
[lat2,lon2]=borders('ecuador');
[lat3,lon3]=borders('chile');
[lat4,lon4]=borders('brazil');
color='white';
cc='k';
plot(lon,lat,cc,lon2,lat2,cc,lon3,lat3,cc,lon4,lat4,cc)
borders('ecuador','facecolor',color);
borders('chile','facecolor',color);
borders('brazil','facecolor',color);
borders('peru','facecolor','b','linestyle','-','linewidth',3,'nomap');
ylim([-19 -3])
xlim([-85 -70])
print('maptest.png','-dpng')

enter image description here

0 个答案:

没有答案