||
首先要添加m_gshhs工具包,在private文件夹下下载好岸线数据,具体请参考m_map工具包官网
在m_gshhs.m下,告诉我们如何加入国界
function m_gshhs(resolution,varargin);
% First char: resolution - one of
% 'c' crude
% 'l' low
% 'i' intermediate
% 'h' high
% 'f' full
%
% Second char: type - one of
% 'c' GSHHS coastline (default)
% 'b' WDB Border
% 'r' WDB River
%
% Third char - if 2nd char is 'c':
% '1' Country borders
% '2' State/Province and Country borders
% - if 2nd char is 'r': '1','2','3','4'
% add successively more tributaries
本人用的例子
m_gshhs_h('patch',[0.7 0.7 0.7],'Edgecolor','none');% 加阴影陆地,岸线不加
m_gshhs('hc1','linewidth',.8,'color','k');% 只加岸线国界线
m_gshhs('hb1','linewidth',.8,'color','k');% 陆地国界线
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2025-1-5 15:06
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社