【matlab程序】海图单位的度分格式
海洋与大气科学
点击蓝字 关注我们
思路来源
阅读文献:
文献中图片的横纵坐标出现半分画法:
半分画法,甚至更为精细的坐标轴在小区域研究中更为重要。
01
一度间隔
代码
% 01 运行前,先安装m_map,安装方法官网首页!
figure
set(0,'defaultfigurecolor','w')
m_proj('Miller','lon',[10 17],'lat',[53 56]);
m_gshhs_h('patch',[0.6 0.6 0.6],'edgecolor','k');
m_grid('linest','-.','color','k','xtick',[10:1:17],'xticklabel',[10:1:17],'ytick',[53:1:56],'yticklabel',[53:1:56])
export_fig('1.jpg','-r300');%图片输出包,export_fig自行下载实在下载不到,私信说下给你发过去;
02
横纵坐标半分间隔
代码
% 02:
figure
set(0,'defaultfigurecolor','w')
m_proj('Miller','lon',[10 17],'lat',[53 56]);
m_gshhs_h('patch',[0.6 0.6 0.6],'edgecolor','k');
m_grid('linest','-.','color','k','xtick',[10:1:17],'xticklabel',[10:1:17],'ytick',[53:0.5:56],'yticklabel',[53:0.5:56])
export_fig('2.jpg','-r300');%图片输出包,export_fig自行下载
% 03:
figure
set(0,'defaultfigurecolor','w')
m_proj('Miller','lon',[10 17],'lat',[53 56]);
m_gshhs_h('patch',[0.6 0.6 0.6],'edgecolor','k');
m_grid('linest','-.','color','k','xtick',[10:0.5:17],'xticklabel',[10:0.5:17],'ytick',[53:0.5:56],'yticklabel',[53:0.5:56])
export_fig('3.jpg','-r300');%图片输出包,export_fig自行下载
03
特定区域加密
代码
% 04:
figure
set(0,'defaultfigurecolor','w')
m_proj('Miller','lon',[10 17],'lat',[53 56]);
m_gshhs_h('patch',[0.6 0.6 0.6],'edgecolor','k');
m_grid('linest','-.','color','k','xtick',[10:1:17],'xticklabel',[10:1:17],'ytick',[53:0.5:56],'yticklabel',[53:0.5:56])
m_grid('linest','-.','color','k','xtick',[12:0.5:14],'xticklabel',[12:0.5:14],'ytick',[53:0.5:56],'yticklabel',[53:0.5:56])
export_fig('4.jpg','-r300');%图片输出包,export_fig自行下载
% 05:
figure
set(0,'defaultfigurecolor','w')
m_proj('Miller','lon',[10 17],'lat',[53 56]);
m_gshhs_h('patch',[0.6 0.6 0.6],'edgecolor','k');
m_grid('linest','-.','color','k','xtick',[10:1:17],'xticklabel',[10:1:17],'ytick',[53:1:56],'yticklabel',[53:1:56])
m_grid('linest','-.','color','k','xtick',[12:0.5:14],'xticklabel',[12:0.5:14],'ytick',[54:0.5:55],'yticklabel',[54:0.5:55])
export_fig('5.jpg','-r300');%图片输出包,export_fig自行下载
04
可以随意设置间隔
代码
% 06 运行前,先安装m_map,安装方法官网首页!
figure
set(0,'defaultfigurecolor','w')
m_proj('Miller','lon',[10 17],'lat',[53 56]);
m_gshhs_h('patch',[0.6 0.6 0.6],'edgecolor','k');
m_grid('linest','-.','color','k','xtick',[10:.4:17],'xticklabel',[10:.4:17],'ytick',[53:.4:56],'yticklabel',[53:.4:56])
export_fig('6.jpg','-r300');%图片输出包,export_fig自行下载实在下载不到,私信说下给你发过去;
% 07 运行前,先安装m_map,安装方法官网首页!
figure
set(gcf,'Position',[50 50 1200 800])
set(0,'defaultfigurecolor','w')
m_proj('Miller','lon',[10 17],'lat',[53 56]);
m_gshhs_h('patch',[0.6 0.6 0.6],'edgecolor','k');
m_grid('linest','-.','color','k','xtick',[10:.2:17],'xticklabel',[10:.2:17],'ytick',[53:.1:56],'yticklabel',[53:.1:56])
export_fig('9.jpg','-r300');%图片输出包,export_fig自行下载实在下载不到,私信说下给你发过去;