MATLAB Answers

chia hua
0

How to fix color global map overlap with frame?

Asked by chia hua
on 19 May 2013
Latest activity Answered by Amy Haskins
on 6 Jun 2016

Hi I want to create a global map with colored filled.

But I find out the map always overlap with the frame,

I have tried uistack but it doesn't work, how can I fix this problem?

thank you!!!

This is my code

h=axesm ('stereo','Grid', 'off','MapLatLimit',[ys 90],'Origin',[90 120 0],'Frame','on','FLineWidth',2,...
'MeridianLabel','off','MLabelParallel','south','LabelRotation','off');
axis off
coast = load('coast.mat');
h1=geoshow(coast.lat, coast.long, 'DisplayType','polygon','EdgeColor',[0.7,0.7,0.7],'FaceColor',[0.7,0.7,0.7]);

This is map figure I draw

https://docs.google.com/file/d/0BxUY6-ywKIvpbFpIVWdsczhiVTg/edit?usp=sharing

  2 Comments

We do not have permission to access that document.

Hi I update the link , it ok now.

1 Answer

Answer by Amy Haskins
on 6 Jun 2016

Trying to send the polygons to the back with UISTACK didn't seem to work well, but bringing the frame to the front looks like a good workaround.

 h2 = framem('on');
 uistack(h2,'top')

  0 Comments


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!