m_map m_grid for south pole

21 views (last 30 days)
Yinchao
Yinchao on 22 Apr 2025
Answered: Yinchao on 22 Apr 2025
Using the similar code when plotting north pole and south pole:
figure ('pos',[100 100 1400 800]);
% north pole
subplot(1,2,1)
m_proj('stereographic','lat',90,'long',0,'radius',50);
m_grid('xtick',12,'tickdir','out','ytick',[50 60 70 80],'linest','-');
m_coast('patch',[.5 .5 .5],'edgecolor','k');
% south pole
subplot(1,2,2)
m_proj('stereographic','lat',-90,'long',0,'radius',50);
m_grid('xtick',12,'tickdir','out','ytick',[-80 -70 -60 -50],'linest','-');
m_coast('patch',[.5 .5 .5],'edgecolor','k');
The result figure as you can see above
The longitude ticklabel for the North pole were showing outside, while the lon ticklabel for the South Pole were showing inside (which is quite annoying)
I was wondering is there any code to change the location of the longitude ticklabe of South pole?

Accepted Answer

Yinchao
Yinchao on 22 Apr 2025
while, I just figure it out by myself
m_grid('FontSize',14,'FontWeight','bold','tickdir','out',...
'xtick',6,'ytick',[-80 -70 -60 -50 -40],...
'XaxisLoaction','top',...
'linest','-','xlabeldir', 'end', 'ylabeldir', 'end');

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!