TightInset in conjunction with "axis image"
3 views (last 30 days)
Show older comments
According to the documentation, the TightInset axes property is defined as "the distances between the bounds of the Position property and the extent of the surrounding text." In light of this, isn't it wrong for the left-hand TightInset value for the following plot to be zero? Shouldn't it be non-zero to account for the extenf of the yticklabels running along the left-hand side of the axis?
plot(1:5)
title('TITLE');
axis image
TightInset = get(gca,'TightInset')
1 Comment
Jonas
on 18 Apr 2021
looks like the
axis image
command makes the space of the ylabels not count for the TightInset in x direction.
the bahvior differs if you add a ylabel instead of adding a title, maybe the reason for the unintuitive behavior is that axis image sets the DataAspectRatio to [1 1 1]
Answers (0)
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!