newfig
create NEW FIGures.
Contents
Syntax
fighandle = newfig(numfigs,figname,monitor,aspect)
Description
Tiles the screen with multiple figures starting at the top left hand corner. If the specified layout only creates one row, then the figure height is chosen to maintain the desired aspect ratio.
"fighandle" is an output array of handle numbers for the figures.
"numfigs" (first numeric input) determines the number of figures to create. If numfigs is a vector (rows,columns) then the layout is also specified.
"figname" (any argument position) is an optional string for the figures' name.
"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'.
"aspect" (third numeric input) is the desired aspect ratio (minimum horizontal/vertical size of the figure) used for determining the layout, it is ignored if the layout is specified by numfigs.
The figures are numbered within this group of figures and not by their figure handles. 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)".
Extended monitors can 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.
Examples:
newfig(3,'Title',2,2)
newfig('Title')
newfig figh=newfig(6);
figh=newfig(4,2,1.5);
newfig([1,5],2);
- Copyright 2006 Mirtech, Inc. created 09/18/2006 by Mirko Hrovat on Matlab Ver. 7.2
email: mhrovat@email.com