image thumbnail

JacobD10/tightfigad​v

version 1.0.0.0 (4.61 KB) by Jacob D
A MATLAB function to remove white space around figures

291 Downloads

Updated 12 Dec 2017

From GitHub

View license on GitHub

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 (2021). JacobD10/tightfigadv (https://github.com/jdonley/tightfigadv), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: tightfig(hfig)

Community Treasure Hunt

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

Start Hunting!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.