reporting: fix bug when data option is passed to addGraph

remove-priordens
Houtan Bastani 2014-05-16 15:00:43 +02:00
parent 5a35c9d54a
commit c783bcfccf
2 changed files with 2 additions and 24 deletions

View File

@ -1,22 +0,0 @@
function o = addSeries(o, varargin)
% function o = addSeries(o, varargin)
% Copyright (C) 2013-2014 Dynare Team
%
% This file is part of Dynare.
%
% Dynare is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% Dynare is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
o.series{end+1} = report_series(varargin{:});
end

View File

@ -177,11 +177,11 @@ end
if ~isempty(o.data)
if isempty(o.seriesToUse)
for i=1:o.data.vobs
o = o.addSeries('data', o.data{o.data.name{i}});
o.series{end+1} = report_series('data', o.data{o.data.name{i}});
end
else
for i=1:length(o.seriesToUse)
o = o.addSeries('data', o.data{o.seriesToUse{i}});
o.series{end+1} = report_series('data', o.data{o.seriesToUse{i}});
end
end
end