When adjusting the data aspect ratio of axes, the visual display of the axes changes, but not their 'Position'. Is it possible to find the equivalent position of the adjusted/visible axes? Needed for e.g. annotations and for positioning new axes/subplots in the same figure.
Here is an illustration (black – aspect adjusted, red – position):
figure; axpos1 = get(gca,'Position') set(gca,'DataAspectRatio',[1 1 1]); axpos2 = get(gca,'Position') axes('Position',axpos2,'Color','None','XColor','r','YColor','r');
Best Answer