True axis position with square DataAspectRatio

Hi,
I'd like to place axes directly below and next to a squared axis, but cannot get the actual position of that axis. get(gca, 'Position') always gives the same result regardless of the DataAspectRatio:
figure
imagesc(rand(10))
get(gca, 'Position')
set(gca, 'DataAspectRatio', [1, 1, 1]) % idential to "axis square"
get(gca, 'Position')
How do I determine the real position of the axis? Thanks for any hints on this issue.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Labels and Annotations에 대해 자세히 알아보기

제품

질문:

2012년 5월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by