总结了一下基本的边框设计命令:
(1) m_proj()
(2)m_grid 如何设置刻度数量,格式等
MATLAB可以使用M_MAP工具箱进行地图和相关图件的值作,下载地址:https://www.eoas.ubc.ca/~rich/map.html,里面各种命令介绍的挺清楚的
% Step 1
首先需要建立地图投影信息,在命令行输入下列命令可以获得支持的投影类型
m_proj('set');
输入的参数包括投影类型,经纬度范围,例如:
m_proj('miller','lon',[99 126],'lat',[-4 26]);
% Step 2
设置边框样式
m_grid();
括号内可以填充如下内容
①轮廓 'box',具体可以设置为('on'|'off'|'fancy'),有边框、无边框、黑白块边框
②刻度数量和位置,'xtick'/'ytick',具体设置为:(num|[value1 value2 ...])
③刻度方向,'tickdir',('out'|'in')
④刻度格式,'tickstyle',( 'dd' | 'da' | 'dm' ),十进制度(eg,2.5°),度分格式(不显示N,E,eg:10 11 12),度分格式(显示N,E,eg:11°E,12°E,13°E)
⑤坐标位置 'xaxisLocation' ('bottom'|'middle'|'top')
'yaxisLocation' ('left'|'middle'|'right')
⑥其他设置:'color','gridcolor','backgroundcolor','linewidth','linestyle','fontsize','fontname'
% 举个栗子
m_grid('tickstyle','da','box','fancy','xtick',6,'ytick',9,'linestyle','none','tickdir','out','fontname','宋体','xaxislocation','top','fontsize',6);