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!