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!