필터 지우기
필터 지우기

How to get Map Frame on the Top of other drawn objects

조회 수: 4 (최근 30일)
Justace Clutter
Justace Clutter 2013년 7월 11일
I am using the mapping toolbox to draw a number of patchm objects. Unfortunately , there are a number of places where the edges of the patch cross the map frame that is drawn around the map boundary. Is there a way to make the map frame on top? I have tried the following with no luck:
-----BEGIN CODE BLOCK-----
latlim = [32 33];
lonlim = [-118 -117];
map = usamap(latlim, lonlim);
setm(map, 'MapProjection', 'Mercator');
setm(map, 'Grid', 'off');
setm(map, 'FLineWidth', 5);
plotm([1 1]*mean(latlim), lonlim + [0.001 0], '-r', 'LineWidth', 5);
uistack(handlem('Frame'), 'top');
-----END CODE BLOCK-----
In the example here I have inflated the width of the lines to highlight the effect. Thanks for any help.
An image of the problem is seen here: <http://s18.postimg.org/qs6s7eio9/map_Error1.png>
Justace
  댓글 수: 4
Justace Clutter
Justace Clutter 2013년 7월 16일
Wow... really.... How does one mark a question as answered...
Rob Comer
Rob Comer 2013년 7월 17일
Oops, I typed my answer into the comment field -- that's why you couldn't just mark it answered.

댓글을 달려면 로그인하십시오.

채택된 답변

Justace Clutter
Justace Clutter 2013년 7월 16일
Solution from Rob Comer:
because the frame is placed in the z == -1 plane by default, you have to change it its ZData to pull it upward. This should work:
zdatam(handlem('Frame'),1)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by