?? pacific01.m
字號:
figure; %另開視窗
worldmap([-50 50],[30 180]); %畫出太平洋區域
setm(gca,'MLabelParallel',60); %將經度的label移到緯度60的地方
co = plotm(coast); set(co,'color',[0 0 0]); %畫海岸線
% load coast; h = patchm(lat,long,'w'); %將陸地塗成白色
load topo; %畫等高線
[c,h] = contourm(topo,topolegend,-6000:2000:2000,'k'); %等高線顏色為黑色
% load geoid; %畫geoid等值線
% [c,h] = contourm(geoid, geoidlegend,-110:10:90); %等值線顏色由Matlab自動設定
ht = clabelm(c,h); set(ht,'color', [1 0 1], 'FontSize',7); %設label的顏色為紫色
% clegendm(c,h,2) %將等值線顏色所代表的值用表格顯示出來
% meshm(topo,topolegend); demcmap(topo); %畫topo﹝method:1﹞
% meshm(geoid, geoidlegend); demcmap(geoid); %畫geoid﹝method:1﹞
[meshlat,meshlon] = meshgrat(topo,topolegend); %畫topo﹝method:2﹞
surfm(meshlat,meshlon,topo);
demcmap(topo);
% [meshlat,meshlon] = meshgrat(geoid, geoidlegend); %畫geoid﹝method:2﹞
% surfm(meshlat,meshlon, geoid);
% demcmap(geoid);
scaleruler ('RulerStyle','patches', 'MajorTick',0:1000:4000,'MinorTick',0:500:1000, 'FontSize',9, 'XLoc',0.5, 'YLoc',-1); %畫尺標
bar = colorbar('horiz'); %自動產生的colorbar
set(get(bar,'XLabel'),'String','Topography in Depth(m)'); %topo's colorbar的label
% set(get(bar,'Xlabel'),'String','EGM96 geoid heights in m'); %geoid's colorbar的label
% contourcmap(1000,'jet','colorbar','on','location','horizontal'); %可自己調整的colorbar
ar = northarrow('latitude',-55,'longitude',125.5,'linewidth',2); %畫向北方的箭頭
set(ar,'FaceColor',[1 1 0],'EdgeColor',[0 0 0]); %設定箭頭的顏色
textm(28,116,'臺灣','fontweight','bold','color', [1 0 0]); %標上Taiwan的字樣
plotm(24,121.5,'LineStyle','none','Marker','pentagram','MarkerEdgeColor',[1 1 0],'MarkerFaceColor','r','MarkerSize',15); %在臺灣的位置標上★號
textm(-10,118,'MD012380','fontweight','bold','color', [1 0 0]); %標上MD012380的字樣
plotm(-5.5,126.5,'LineStyle','none','Marker','pentagram','MarkerEdgeColor',[1 1 0],'MarkerFaceColor','r','MarkerSize',15); %在巖心的位置標上★號
% brighten(.5); %亮度
load worldlo;
displaym(DNline); %畫主要河流
displaym(DNpatch); %將主要湖泊塗上顏色
displaym(POline); %畫國界
% displaym(POpatch); %將國家塗上顏色
% h = displaym(POtext); trimcart(h); %標上國名
% displaym(PPpoint); h = displaym(PPtext); trimcart(h); %將主要城市標示出來
% axesm; %將先前的圖畫好後,利用此指令可以叫出Table來選擇投影法
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -