Remove excess margins from figures.
27,6K téléchargements
Mise à jour 13 fév. 2018

Afficher la licence

Note de l’éditeur : This file was selected as MATLAB Central Pick of the Week

Alters a figure so that it has the minimum size necessary to
enclose all axes in the figure without excess space around them.
Works for figures containing multiple axes as subplots.
Note that tightfig will expand the figure to completely encompass all
axes if necessary.
Returns an error if the figure contains any 3D axes which have been zoomed.

Citation pour cette source

Richard Crozier (2024). tightfig(hfig) (https://www.mathworks.com/matlabcentral/fileexchange/34055-tightfig-hfig), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2008a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version

Actually uploaded new file this time!

Now works better with newer Matlab plotting code (i.e. colorbars and legends now handled properly in newer Matlab)

Added suggested improvement for minimum bound by Ben

Corrected bug noted by commenter Thomas, also tidied up some other parts of code and comments.