From 161ff7483dfb6a799bd76278a10176c9e9ae54d3 Mon Sep 17 00:00:00 2001 From: sebastien Date: Thu, 5 Mar 2009 10:52:14 +0000 Subject: [PATCH] trunk pm3.m: removed useless empty plot (thanks to Jamie Hall for reporting this) git-svn-id: https://www.dynare.org/svn/dynare/trunk@2448 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/pm3.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/matlab/pm3.m b/matlab/pm3.m index b8844e202..0db6d3768 100644 --- a/matlab/pm3.m +++ b/matlab/pm3.m @@ -114,7 +114,7 @@ function pm3(n1,n2,ifil,B,tit1,tit2,tit3,tit_tex,names1,names2,name3,DirectoryNa end title(name,'Interpreter','none') end - if subplotnum == MaxNumberOfPlotsPerFigure | j == nvar + if subplotnum == MaxNumberOfPlotsPerFigure | i == nvar eval(['print -depsc2 ' M_.dname '/Output/' M_.fname '_' name3 '_' deblank(tit3(i,:)) '.eps' ]); if ~exist('OCTAVE_VERSION') eval(['print -dpdf ' M_.dname '/Output/' M_.fname '_' name3 '_' deblank(tit3(i,:))]); @@ -139,7 +139,9 @@ function pm3(n1,n2,ifil,B,tit1,tit2,tit3,tit_tex,names1,names2,name3,DirectoryNa end subplotnum = 0; figunumber = figunumber+1; - hh = figure('Name',[name3 ' ' int2str(figunumber+1)]); + if (i ~= nvar) + hh = figure('Name',[name3 ' ' int2str(figunumber+1)]); + end end end