saveTightFigure(h,outfilename)
MATLAB's saveas pads your figure with a white margin. This m-file is prevents that.
Exellent to save pdf figures without the white margin (to include in LaTeX reports for example).
Updated version of saveTightFigure (by E Akbas). E Akbas Fuction change the ploted fuction and after that we was unable to resize the ploted figure. This update allow you to use this function like the saveas fuction.
With this version the figure is copied, changed and saved.
Cite As
Flavio "LeviCC" Capitao (2024). saveTightFigure(h,outfilename) (https://www.mathworks.com/matlabcentral/fileexchange/48877-savetightfigure-h-outfilename), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.