source:
prextra/showfigs.m
@
123
Last change on this file since 123 was 5, checked in by bduin, 14 years ago | |
---|---|
File size: 433 bytes |
Line | |
---|---|
1 | %SHOWFIGS Show all figures on the screen |
2 | |
3 | function showfigs |
4 | h = sort(get(0,'children')); |
5 | n = length(h); |
6 | k = ceil(sqrt(n)); |
7 | s = 0.9/k; % screen stitch |
8 | r = 0.96; % image size reduction |
9 | t = 0.055; % top gap |
10 | b = 0.005; % border gap |
11 | fig = 0; |
12 | for 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 |
19 | end |
Note: See TracBrowser
for help on using the repository browser.