tightFig resizes a figure to reduce empty space.
tightFig(fig) resizes the given figure.
tightFig(_, margin) sets a custom margin after tightening with default value 0.05. Treated as a ratio if it is less than 1.
Resizing or drawing new things on the figure after using tightFig is not recommended.
Cite As
Kim Dohyun (2026). tightFig (https://uk.mathworks.com/matlabcentral/fileexchange/73644-tightfig), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2019b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
