Why are map limit and frame limit not aligned when zooming in ?

조회 수: 1 (최근 30일)
Guillaume Marrakchi
Guillaume Marrakchi 2016년 12월 22일
댓글: Guillaume Marrakchi 2017년 1월 3일
Hi, I can't find an answer to a very simple question, using the Mapping Toolbox: why my map and my frame limits are not aligned when I zoom in ? Here is my code, creating a map of the world:
ax = worldmap('World');
setm(ax, 'Origin', [0 25 0], 'FFaceColor',[228, 230, 234]/255)
framem('FlineWidth',1,'FEdgeColor','k')
land = shaperead('landareas', 'UseGeoCoords', true);
geoshow(ax, land, 'FaceColor', [163, 163, 194]/255,'EdgeColor',[133, 133, 173]/255)
Here is what I get, with original scale:
When I try to zoom in, the frame edge is not aligned with the map edge anymore for some obscure reason:
Am I missing something here? I tried to play with tightmap to remove this empty space introduced when zooming, but it has no effect.
Any idea ?
Thanks a bunch!

채택된 답변

Aylin
Aylin 2016년 12월 28일
편집: Aylin 2016년 12월 28일
Hello Guillaume, this may be occurring due to the 'Clipping' property on the axes object being set to 'on' by default. Try disabling clipping on the axes:
>> ax.Clipping = 'off';
See the below image for the result of this command with your code:

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by