MATLAB Answers

Mapping toolbox move labels off frame

5 views (last 30 days)
Cg Gc
Cg Gc on 12 Feb 2019
Commented: Chad Greene on 15 Feb 2019
I am trying to create a map of Antarctica, but my degree labels are on the frame, making them annoying to read. Is there a way to move the labels off of the frame without moving every individual one after the map is generated?
load coastlines
figure('Color','w')%Colors the figure white.
axesm('stereo','Origin',[-90 0],'MapLatLimit',[-90 -55])
axis off;
framem on;
framem('FEdgeColor',[.2 .2 .2],'FLineWidth',[.5])
gridm on;
gridm('plinelocation',10);
mlabel on;
plabel on;
setm(gca, 'MlabelLocation', 30, 'PlabelLocation',10,'MlabelParallel', 'north')
geoshow(coastlat,coastlon,'DisplayType','polygon', 'FaceColor', 'white')
This is what I would like to do.
Capture17.JPG

  3 Comments

Cg Gc
Cg Gc on 12 Feb 2019
Thank you. This helps. I am glad that they rotated the labels too. Now if only, the toolbox would move them a little more off the line when the figure pops up that would be great. They move when the figure is enlarged, but not before.
Chad Greene
Chad Greene on 15 Feb 2019
Careful with that particular "coastline" of Antarctica though. Note that arond the Ross ice shelf it's a grounding line, whereas on the Filchner-Ronne it's the ice edge. Better off using antbounds from the Antarctic Mapping Toolbox for Matlab.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by