필터 지우기
필터 지우기

Map plot overlaying frame

조회 수: 4 (최근 30일)
Sally Wood
Sally Wood 2017년 11월 21일
답변: Mann Baidi 2024년 6월 3일
Hi, I am plotting a map, but the plot overlays the frame:
I have tried setting the 'Layer' property to both 'top' and 'bottom', but it does nothing. Any other ideas? I guess alternatively I could move the position of the plot within the frame to be more central, but I don't know how to do this.
The code I am using to set up my map is:
fob = figure;
%mollweid eqacylin behrmann robinson
h=axesm('MapProjection','behrmann','MapLatLimit',latlim,'MapLonLimit',lonlim,'Frame','on','FLineWidth',6,'Grid','off','MLineLocation',2,'meridianlabel','on','PLineLocation',2,'parallellabel','on','fontsize',26);
set(gcf,'PaperOrientation','portrait','Color','w','Position',get(0,'Screensize'),'PaperPositionMode','auto','Renderer','painters')
set(gca,'box','off','Visible','off','Layer','top');
Any advice would be gratefully received. Sally

답변 (1개)

Mann Baidi
Mann Baidi 2024년 6월 3일
Hi
For moving the position of the plot, you can change the 'Postition' property of the 'axem' function.
You can try the following code for the same:
x=axesm('MapProjection','miller','Frame','on');
x.Position= [0.1300 0.1600 0.7750 0.8150];
Hope this will help with your query

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by