get handle of subplot?
显示 更早的评论
After I subplot, how can I get the Position property of the current axis so I can adjust it?
采纳的回答
更多回答(1 个)
Walter Roberson
2011-9-26
get(gca,'Position')
Be careful, though: if you adjust the position such that it would overlap the normal position of a subplot that you subplot() later, then MATLAB will detect the overlap and will remove the plot being overlapped. It may be advised to subplot() all of the portions first, recording the handles, and then to go through the saved handles and reposition or resize as desired.
类别
在 帮助中心 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!