當(dāng)使用M_Map工具包在subplot中繪制地圖時(shí),會(huì)出現(xiàn)地圖非常小的情況。為了解決這個(gè)問題,可以設(shè)置subplot axes的position屬性,將地圖子圖放大,同時(shí)將其他子圖略微縮小即可。地圖子圖的寬度或者高度可以擴(kuò)大1.8倍,但是其占用面積也就擴(kuò)大到與其他子圖相當(dāng)?shù)拿娣e。以下為示例代碼,具體設(shè)置用...代替了。
figure,
% set map subfigure position
ax=subplot(1,3,1);hold on;
left=ax.Position(1);
bottom=ax.Position(2);
width=ax.Position(3);
height=ax.Position(4);
ax.Position=[left-width*0.3,bottom,width*1.8,height];%move leftward and expand the width
m_proj(...);
m_grid(...);
m_coast('color','k');
% set other subfigure position
ax=subplot(1,3,2);hold on;
left=ax.Position(1);
bottom=ax.Position(2);
width=ax.Position(3);
height=ax.Position(4);
ax.Position=[left+width*0.2,bottom,width*0.8,height];%move rightward
plot(...);