Looks like it only works if figure units are pixels. Should check for actual units, save them, do tiling, then restore original units.
Should also allow a selection of figure handles to be passed, rather than always tiling all figures.
14 Jun 2008
Works even with Matlab 2008a, but not quite perfectly: figures overlap slightly.
13 Aug 2006
Did just what I wanted it to do.
I'm running MATLAB Version 188.8.131.523 (R2006a) on Mac OS 10.4.7.
This routine doesn't respect the dock, and since Matlab does, this creates problem when tiling 1 row of figures and filling the screen. For example,
However, this problem is easily resolved by increasing the rows a bit :-)
28 Jul 2006
works still under ML-R14 (Version 7.1..)!
Here's a little test-program for trying out:
- - - - - - - - - - -
%% test-function for tilefigs
% feel free to modify the constants
N=0; % counting index for creating figures
for R=(1:4); % Rows
for C=(1:5) % Columns
N=N+1; % count index starts with 1 and will not be incr finally
figure (N); % create a number of figures
%% CALL tilefigs, display for 5 s and remove the figures again
tilefigs ([R C],1); % R rows, C columns , 10 pixels border
pause(5); % wait 5 s
for indx=(1:N); close(figure(indx)); end
end % test-function
27 Apr 2006
It seems that it doesn't tile the figures properly if I am using 19" TFT screen. Any suggestions?
20 Feb 2006
A useful contribution, thanks.
03 Aug 2005
It was exactly what I was looking for. Script will save me time. There are some constants embedded within the code that I needed to tweak. I would like to have seen the constants defined as variables at the top of the file