image thumbnail

undecorateFig - remove/restore figure border and title bar

version (31.8 KB) by Yair Altman
Removes/restores the border and title bar of Matlab figures


Updated 20 Mar 2015

View License

undecorateFig removes the border, title bar, menu bar and toolbar of a Matlab figure.
redecorateFig restores the figure to its previous (decorated) state.

undecorateFig(hFig) % hFig is a figure handle or any other GUI handle (default: current figure)

Technical details:

This code heavily relies on undocumented and unsupported Matlab functionality. It is expected to work on Matlab 7 and higher, but use at your own risk!

Cite As

Yair Altman (2022). undecorateFig - remove/restore figure border and title bar (, MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!