- the lower left corner x position,
- the lower left corner y position,
- the axis width,
- the axis height.
How to change figure size within the figure window
62 次查看(过去 30 天)
显示 更早的评论
Hello! I've been trying to make a subplot with 3 panels using subtightplot and my axis labels (both x and y) are being cut off. I can get the xis labels to appear If I constantly drag the corners of the figure window (to resize it) but that makes my figure huge. Is there any way to set the interior figure size and window size so I can see my axis labels? I've tried using 'InnerPosition' and 'OuterPosition', but that seems to only change the size of the entire figure
Thanks!
0 个评论
采纳的回答
Chad Greene
2017-8-13
I think you want to change the position of the axes, not the figure. So try
ax1pos = get(gca,'position')
which will give you a four-element array containing
Adjust the second and fourth values to get some room for labels. Then set the new axis position with
set(gca,'position',ax1pos_adjusted)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!