tightFig

Version 1.0.0 (2.12 KB) by Kim Dohyun
resizes figure so that its children fit tightly
335 Downloads
Updated 11 Dec 2019

View License

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 Linux
Version Published Release Notes
1.0.0