Why does the "subplot" function reserve so much whitespace?
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (1)
Jan
le 28 Fév 2019
Modifié(e) : MathWorks Support Team
le 7 Sep 2022
1 vote
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 commentaires
Guillaume
le 28 Fév 2019
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
le 28 Fév 2019
@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.
Catégories
En savoir plus sur Subplots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!