%% Nice looking data
[lon,lat]=meshgrid([-136:2:-114],[36:2:54]);
%meshgrid应该是打网格的意思
u=sin(lat/6);
v=sin(lon/6);
m_proj('oblique','lat',[56 30],'lon',[-132 -120],'aspect',.8);
%m_proj('oblique','lat',[56 30],'lon',[-132 -120]);
%投影方式‘oblique’,投影范围,'aspect'显示比列
subplot(121);
m_coast('patch',[.9 .9 .9],'edgecolor','none');
%显示陆地,无边界线
m_grid('tickdir','out','yaxislocation','right',...
'xaxislocation','top','xlabeldir','end','ticklen',.02);
%网格上标签的设置
hold on;
m_quiver(lon,lat,u,v);
%箭头的设置,与quiver设置相同
xlabel('Simulated surface winds');
subplot(122);
m_coast('patch',[.9 .9 .9],'edgecolor','none');
m_grid('tickdir','out','yticklabels',[],...
'xticklabels',[],'linestyle','none','ticklen',.02);
hold on;
[cs,h]=m_contour(lon,lat,sqrt(u.*u+v.*v));
%等值线
%clabel(cs,h,'fontsize',8);
%测试这个是等值线上数字
xlabel('Simulated something else');
% Plot a circular orbit
lon=[-180:180];
lat=atan(tan(60*pi/180)*cos((lon-30)*pi/180))*180/pi;
m_proj('miller','lat',82);
%Miller投影
m_coast('color',[0 .6 0]);
%岸线
m_line(lon,lat,'linewi',3,'color','r');
%画线
m_grid('linestyle','none','box','fancy','tickdir','out');
%外面的边框
m_northarrow(-150,0,40,'type',4,'linewi',.5);
%指南针