A MATLAB function to remove white space around figures
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This MATLAB function removes all excess white space from a figure by searching through child axes, legends, colorbars and text labels to find the outer most objects.
The function extends tightfig() for use with HG2, colorbars, legends and previously moved text labels.
Manually positioning text labels does not update TightInset values and so their equivalent values are computed using Extent values and parent Position values.
Future additions may include support for positioning of annotations, tick labels and tick label exponents.
See also:
https://au.mathworks.com/matlabcentral/fileexchange/34055-tightfig
Cite As
Jacob D (2026). JacobD10/tightfigadv (https://github.com/jdonley/tightfigadv), GitHub. Retrieved .
Acknowledgements
Inspired by: tightfig(hfig)
General Information
- Version 1.0.0.0 (4.61 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
