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?

 Akzeptierte Antwort

Yinchao
Yinchao am 22 Apr. 2025

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Mehr zu Oceanography and Hydrology finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 22 Apr. 2025

Beantwortet:

am 22 Apr. 2025

Community Treasure Hunt

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

Start Hunting!

Translated by