tilefig
TILE one or more FIGures.
Contents
Syntax
fighandle = tilefig(figs,figname,monitor,layout)
Description
Tiles the screen for existing figures starting at the top left hand corner.
"fighandle" is an output array of handle numbers for the figures.
"figs" (first numeric input) is a vector of handles of the figures to be tiled. Default value is 0 or empty which tiles all open figures.
"figname" (any argument position) is an optional string for each figure's name. If not specified then figure names are retained, to erase names use ' '.
"monitor" (second numeric input) (Default=1) is an integer corresponding to a monitor. Monitor numbering is defined by the row number of the corresponding monitor in the root property 'MonitorPositions'.
"layout" (third numeric input) is a vector (rows,columns) specifying the screen layout or a single number (aspect) specifying the aspect ratio. If not specified then the optimal layout will be determined. If the specified layout only creates one row, then the figure height is chosen to maintain the default aspect ratio. The aspect ratio is the minimum horizontal/vertical figure size.
Figures are tiled in the order they are specified in "figs". The figures are numbered within this group of figures and not by their figure handle. The figures are accessible by their handles. Thus "figure(fighandle(4))" will make the 4th figure from this group of figures the current figure. To delete the entire group of figures use "close(fighandle)".
Inspired by "Tilefigs" by Charles Plum. Will work with docked figures, will ignore modal figures. Extended monitors may have a different resolution from the primary monitor. Placement and size of the taskbar on the primary monitor can be changed in the code, see commented sections. The size and layout of the figures is determined by the aspect ratio and the number of figure columns. For a large number of figures, the menubar and toolbar are removed to increase figure space.
Uses getmondim.m.
Examples:
tilefig
tilefig([1,2,3],'Title',2)
tilefig('Title')
figh=tilefig([2:12]);
figh=tilefig([3,4],2);
tilefig(5,2,[2,3])
- Copyright 2006 Mirtech, Inc. created 09/18/2006 by Mirko
Hrovat on Matlab Ver. 7.2
email: mhrovat@email.com