1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
fnameps = [outfile, '.ps'];
fnamepdf = [outfile, '.pdf'];
hdle = figure('Position', [50 50 1000 700], 'PaperUnits', 'centimeters', 'PaperType', 'A4');
annotation('textbox', [0 0 1 0.03], 'String', ['Monitoring version ' params.soft_version ' using KB version ' params.param_version ' || Number of spectra analyzed : ' (int2str(nbUsed))]);
for i=1:n % où n est le nombre d'indicateurs à ploter
subplot(2,1,1)
plot(X1, indic{i}, '-k.')
subplot(2,1,2)
plot(X2, indic{i}, '-k.')
if i==1
print(hdle, '-dpsc2', fnameps);
else
print(hdle, '-dpsc2', fnameps, '-append');
end
clf('reset');
end
if isempty(gspath)
fprintf('\nUse MATLAB''s version of Ghostscript to generate pdf file...\n');
ps2pdf('psfile', fnameps, 'pdffile', fnamepdf, 'gspapersize', 'a4');
else
fprintf('\nUse local copy of Ghostscript to generate pdf file...\n');
ps2pdf('psfile', fnameps, 'pdffile', fnamepdf, 'gspapersize', 'a4', ...
'gscommand', [gspath, '\bin\gswin32c.exe'], ...
'gsfontpath', [gspath, '\fonts'], ...
'gslibpath', [gspath, '\lib']);
end |
Partager