source: prextra/showfigs.m @ 89

Last change on this file since 89 was 5, checked in by bduin, 14 years ago
File size: 433 bytes
RevLine 
[5]1%SHOWFIGS Show all figures on the screen
2
3function showfigs
4h = sort(get(0,'children'));
5n = length(h);
6k = ceil(sqrt(n));
7s = 0.9/k;   % screen stitch
8r = 0.96;     % image size reduction
9t = 0.055;    % top gap
10b = 0.005;    % border gap
11fig = 0;
12for i=1:k
13        for j=1:k
14                fig = fig+1;
15                if fig > n, break; end
16                set(h(fig),'units','normalized','position',[(j-1)*s+b,(1-t)-i*s,s*r,s*r]);
17                figure(h(fig));
18        end
19end
Note: See TracBrowser for help on using the repository browser.