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?

 Respuesta aceptada

Yinchao
Yinchao el 22 de Abr. de 2025

0 votos

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

Más respuestas (0)

Categorías

Más información sobre Oceanography and Hydrology en Centro de ayuda y File Exchange.

Preguntada:

el 22 de Abr. de 2025

Respondida:

el 22 de Abr. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by