Y limits affect axis position?
이전 댓글 표시
This has been driving me crazy. Generate two axes with the same y positioning, one half the width.
a1=axes;
a2=axes;
a1pos = get(a1,'Position');
set(a2,'Position',[a1pos(1)+a1pos(3)/2,a1pos(2),a1pos(3)/2,a1pos(4)]);
Now change the limits of one of them:
ylim(a1,[2.555 4.0]);
The two axes have the exact same y-positioning, but the plots are slightly offset relative to each other in the y direction! I confirmed that all the position properties are still the same, so what's going on?
답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!