Why does the "subplot" function reserve so much whitespace?
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
Jan
el 28 de Feb. de 2019
Editada: MathWorks Support Team
el 7 de Sept. de 2022
1 voto
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 comentarios
Guillaume
el 28 de Feb. de 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
el 28 de Feb. de 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.
Categorías
Más información sobre Subplots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!