M_Map是MATLAB语言的地图工具包,能够方便的绘出各种地图。主页为https://www.eoas.ubc.ca/~rich/map.html。在绘制极区图时,北极上空俯视图画图示例为:
m_proj('stereographic','lat',90,'long',30,'radius',25);
m_grid('xtick',12,'tickdir','out','ytick',[70 80],'linest','-');
m_coast();
而如果把区域改为南极,则会出现问题
m_proj('stereographic','lat',-90,'long',30,'radius',25);
m_grid('xtick',12,'tickdir','out','ytick',[-80 -70],'linest','-');
m_coast();
咨询了M_Map开发者之后,发现可以通过设置x轴的位置解决。回复邮件的原文是:The default location for long ticks is at 'bottom' (or south). set 'xaxisloc','top' in your m_grid call forwhat you want.
正确的代码如下
m_proj('stereographic','lat',-90,'long',0,'radius',25);
m_grid('xtick',12,'tickdir','out','ytick',[-80 -70],'linest','-','xaxisloc','top' );
m_coast();
运行结果如下: