Why does the "subplot" function reserve so much whitespace?
显示 更早的评论
I have a "subplot" function which plots 12 axes on one figure. When I maximize the figure the axes are spaced evenly, but too much whitespace is placed around each axis.
采纳的回答
更多回答(1 个)
Jan
2019-2-28
编辑:MathWorks Support Team
2022-9-7
1 个投票
You find many solutions for modified subplot positions in the FileExchange:
Examples (incomplete and in the order of the output of searching)
- https://www.mathworks.com/matlabcentral/fileexchange/68326-border-less-tight-subplot-auto-refresh
- https://www.mathworks.com/matlabcentral/fileexchange/42763-subplot-position-calculator
- https://www.mathworks.com/matlabcentral/fileexchange/68443-subplots-divided-into-full-figures
- https://www.mathworks.com/matlabcentral/fileexchange/30884-controllable-tight-subplot
- https://www.mathworks.com/matlabcentral/fileexchange/56261-subplot-position
- https://www.mathworks.com/matlabcentral/fileexchange/34191-subplot_grid
- https://www.mathworks.com/matlabcentral/fileexchange/27991-tight_subplot-nh-nw-gap-marg_h-marg_w
- https://www.mathworks.com/matlabcentral/fileexchange/34326-gridsubplot
- https://www.mathworks.com/matlabcentral/fileexchange/48720-subplotn
- https://www.mathworks.com/matlabcentral/fileexchange/38420-bigsubplot
- https://www.mathworks.com/matlabcentral/fileexchange/35435-gettightsubplothandles
- https://www.mathworks.com/matlabcentral/fileexchange/46187-subplot-handle
- ... and dozens more
You see, there is a need to use different methods for subplot scaling.
2 个评论
Guillaume
2019-2-28
Yes, it's probably one of the most complained about feature of matlab. One can only hope that one day, it'll be improved.
Jan
2019-2-28
@Guillaume: Some other evergreens in the FileExchange:
- Replacements for waitbar (some are powerful, e.g. for parfor)
- Recursive dir (implemented in R2016b)
- XML import and export
How frustrating! I cannot find a way to find the most frequently downloaded files in the FEX anymore. I'm confused by the new interface. What a pity that TMW spent time to modify the working interface of the FileExchange to a less usable version, instead of fixing the broken interface of the Answers forum.
类别
在 帮助中心 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!