c1=200:4:500;
m_contourf(x,y,z,c1,'linestyle','-');
%m_contourf(x,y,z,c1,'linewidth',0.2,'linestyle','-','color','w');
%[cs,h]=m_contour(x,y,z,'levellist','color','r','linewidth',1,'linestyle','-');
% hold on;
%[cs,h]=m_contour(x,y,T,'levellist','color','r','linewidth',1,'linestyle','-');
% set(h,'ShowText','on','TextList',[60]);
% hcl=clabel(cs,h,'fontsize',12,'color','r','margin',0.2,'background','w','labelspacing',600);
%set(hcl,'name','value');
% for i = 1:length(hcl)
% oldLabelText = get(hcl(i), 'String');
% percentage = str2double(oldLabelText)*1;
% newLabelText = [num2str(percentage) 'gpm'];
% set(hcl(i), 'String', newLabelText);
% end
% hold on;
c=-40:4:50;
m_contourf(x,y,T,c,'linewidth',0.2,'linestyle','-','color','w');
hold on;
% [cs,h]=m_contour(x,y,divv,'levellist',[-0.5],'color','k','linewidth',1,'linestyle','-');
% set(h,'ShowText','on','TextList',[-0.5]);
% clabel(cs,h,'fontsize',8,'color','k','margin',0.2,'background','w','labelspacing',600);
% hold on;
% [cs,h]=m_contour(x,y,divv,'levellist',[0.5],'color','k','linewidth',1,'linestyle','-');
% set(h,'ShowText','on','TextList',[0.5]);
% clabel(cs,h,'fontsize',8,'color','k','margin',0.2,'background','w','labelspacing',600);
% hold on;
% [cs,h]=m_contour(x,y,divv,'levellist',[-1 2],'color','k','linewidth',1,'linestyle','-');
% set(h,'ShowText','on','TextList',[-2 2]);
% clabel(cs,h,'fontsize',8,'color','k','margin',0.2,'background','w','labelspacing',600);
% hold on;
n=10;
for i=1:n
colormap1(i,1:3)=[i/n i/n 1];
colormap1(n,1:3)=[1 1 1];
colormap1(i+n,1:3)=[1 (n+1-i)/n (n+1-i)/n];
colormap1(n+1,1:3)=[1 1 1];
end
map=colormap(colormap1);
caxis([min(c) max(c)]);
h=colorbar('southoutside','position',[0.25 0.05 0.5 0.03]);
set(h,'xlim',[min(c) max(c)],'xtick',c(1:2:end),'FontSize',10);
%colorbar;
%
hold on;
hold on;
a=shaperead('bou2_4p.shp');%读取shp文件的内容
bou1_4lx=[a(:).X];%提取经度信息
bou1_4ly=[a(:).Y];%提取纬度信息
m_plot(bou1_4lx,bou1_4ly,'Color',[0.7 0.7 0.7],'linewidth',1);%绘图
hold on;
m_text(80,63,['Hgt and Temperature at ',num2str(plev_c),' hPa on ',num2str(year_c1),' - ',num2str(month_c1),' - ',num2str(day_c1),' - ',num2str(hour_c1),':00'],'fontsize',12,'color','K')
print('-dpng','-loose','-r600',['D:\BISHE\M\zt_HT_',num2str(year_c),'_',num2str(month_c),'_',num2str(day_c),'_',num2str(hour_c)]);
end
%print('-depsc','-loose','-r600',['J:\Work_4\Work_LHW_aircraft\uv_',num2str(year_c),'_',num2str(month_c),'_',num2str(day_c),'_',num2str(hour_c)]);