set figure visible before saving when nograph=1
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@735 ac1d8469-bf42-47a9-8791-bf33cf982152time-shift
parent
fa8bf384a8
commit
c9d263a3a0
|
@ -104,6 +104,9 @@ for i=1:npar
|
|||
if subplotnum == MaxNumberOfPlotPerFigure | i == npar;
|
||||
eval(['print -depsc2 ' OutputDirectoryName '/' M_.fname '_PriorsAndPosteriors' int2str(figunumber)]);
|
||||
eval(['print -dpdf ' OutputDirectoryName '/' M_.fname '_PriorsAndPosteriors' int2str(figunumber)]);
|
||||
if options_.nograph,
|
||||
set(hfig,'Visible','on');
|
||||
end
|
||||
saveas(hfig,[OutputDirectoryName '/' M_.fname '_PriorsAndPosteriors' int2str(figunumber) '.fig']);
|
||||
if TeX
|
||||
fprintf(fidTeX,'\\begin{figure}[H]\n');
|
||||
|
@ -121,7 +124,9 @@ for i=1:npar
|
|||
fclose(fidTeX);
|
||||
end
|
||||
end
|
||||
if options_.nograph, close(hfig), end
|
||||
if options_.nograph,
|
||||
close(hfig),
|
||||
end
|
||||
subplotnum = 0;
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue