File Exchange

image thumbnail

Figure Management Utilities

version (103 KB) by Mirko Hrovat
These M-files are a collection of utilities for managing groups of figures on multiple monitors.


Updated 11 Oct 2006

View License

These M-files are a collection of utilities for managing groups of figures. The concept of a figure group is introduced as a collection of figures which may be treated as a single group. A figure group can be tiled on the screen with any desired layout. New groups can be created or a group or can be formed from figures already created. A figure group can also be simply brought to the front of the display screen. These utilities support multiple monitor displays, also known as the extended desktop, though figure groups do not span more than one monitor.

Actions such as tiling, creating, and viewing can create figure groups. In the attached figure is an example of 6 figures tiled on the screen with room for the taskbar.

Support is also provided for working with docked figures in the Matlab desktop using DOCKFIG and NEWDFIG. The utility MAXFIG will maximize a figure to fill the screen, remembering it's prior position and size. A subsequent call to MAXFIG will restore the figure. Two versions are provided for MAXFIG, NEWFIG, and TILEFIG in the folders "Windows" and "Platform Independent" to provide support for multiple monitors. The "Windows" versions use the root property "MonitorPositions" and thus may not work properly on all platforms and will not work for Matlab versions prior to version 7 (R14). The "Platform Independent" versions should work on earlier releases and all platforms.

Folder Contents
dockfig DOCK one or more FIGures.
newdfig create NEW Docked FIGures.
vf View one or more Figures.
getfigdim GET FIGure DIMensions.

Platform Independent Folder
maxfig MAXimize a FIGure to fill the screen.
newfig create NEW FIGures.
tilefig TILE 1 or more FIGures.

Windows Folder
maxfig MAXimize a FIGure to fill the screen.
newfig create NEW FIGures.
tilefig TILE 1 or more FIGures.
getmondim GET MONitor DIMensions.
screenxyabs SCREEN X-Y ABSolute coordinates.
screenxymon SCREEN X-Y MONitor coordinates.

Cite As

Mirko Hrovat (2020). Figure Management Utilities (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (6)

John Adcox

Great set of functions!

Is there a way to have tilefig automatically extend onto secondary monitors if there is no additional space on the primary monitor?

i.e. if I have 13 figures and I specify a 3x4 tile on the primary monitor, then the 13th figure could be extended to the secondary monitor (following the same 3x4 structure).

I know that I can do this by picking out the desired figures and then running the code again to specify its desired location on the 2nd monitor, but it would be nice if there was an option in the function to automatically do this.


tilefig needs to handle figures that don't have taskbars or menubars. Currently when passed such figures it puts taskbars / menubars back onto them.

Thierry Dalon

I like it very much! specially tilefig, maxfig and vf. (works fine with R2008a)

Mirko Hrovat

Dmytro, I've sent you an email.
Specific questions or comments are probably best made through direct email.

To permanently have a figure maximized one can use "tilefig" with the layout specified as [1,1].

Dmytro Vasylenko

I try
h_S11_3D=figure ('Name', 'S11 vs GENERATIONs', 'NumberTitle', 'off');
h_gain_3D=figure ('Name', 'GAIN vs GENERATIONs', 'NumberTitle', 'off');
But window with h_S11_3D is not more maximized, but I want it to be maximized??
How can I make this.

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