| 40 |
% Loop over subplots and make plots. |
% Loop over subplots and make plots. |
| 41 |
for inrow = 1:nrow |
for inrow = 1:nrow |
| 42 |
|
|
| 43 |
nexp = length(page{inrow}); if nexp ~= 1, nexp = nexp - 1; end |
ntrl = length(page{inrow}); if ntrl ~= 1, ntrl = ntrl - 1; end |
| 44 |
if nexp == 1, cmp = 'Sep'; else, cmp = page{inrow}{end}; end |
if ntrl == 1, cmp = 'Sep'; else, cmp = page{inrow}{end}; end |
| 45 |
if nexp == 1, ncol = 1; elseif cmp == 'Sbs', ncol = nexp; else ncol = 1; end |
if ntrl == 1, ncol = 1; elseif cmp == 'Sbs', ncol = ntrl; else ncol = 1; end |
| 46 |
|
|
| 47 |
dx = (1-dxl-dxr-(ncol-1)*dxm)/ncol; |
dx = (1-dxl-dxr-(ncol-1)*dxm)/ncol; |
| 48 |
dy = (1-dyb-dyt-(nrow-1)*dym)/nrow; |
dy = (1-dyb-dyt-(nrow-1)*dym)/nrow; |
| 111 |
|
|
| 112 |
% Save plot as desired. |
% Save plot as desired. |
| 113 |
if SavePlots |
if SavePlots |
| 114 |
outputfile = [outputdir,'/',pagename,'.eps']; |
if isequal(outputdir,'') |
| 115 |
|
outputfile = [pagename,'.eps']; |
| 116 |
|
else |
| 117 |
|
outputfile = [outputdir,'/',pagename,'.eps']; |
| 118 |
|
end |
| 119 |
print('-depsc2',outputfile); |
print('-depsc2',outputfile); |
| 120 |
end |
end |