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?

 Réponse acceptée

Yinchao
Yinchao le 22 Avr 2025

0 votes

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');

Plus de réponses (0)

Catégories

En savoir plus sur Oceanography and Hydrology dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by