1function h = dyn_figure(nodisplay, varargin) 2%function h = dyn_figure(nodisplay, varargin) 3% initializes figures for DYNARE 4% 5% INPUTS 6% nodisplay: the value of the command-specific nodisplay argument or options_.nodisplay 7% varargin: the same list of possible inputs of the MATLAB function figure 8% 9% OUTPUTS 10% h : figure handle 11% 12% SPECIAL REQUIREMENTS 13% none 14 15% Copyright (C) 2012-2017 Dynare Team 16% 17% This file is part of Dynare. 18% 19% Dynare is free software: you can redistribute it and/or modify 20% it under the terms of the GNU General Public License as published by 21% the Free Software Foundation, either version 3 of the License, or 22% (at your option) any later version. 23% 24% Dynare is distributed in the hope that it will be useful, 25% but WITHOUT ANY WARRANTY; without even the implied warranty of 26% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 27% GNU General Public License for more details. 28% 29% You should have received a copy of the GNU General Public License 30% along with Dynare. If not, see <http://www.gnu.org/licenses/>. 31 32if nodisplay 33 h = figure(varargin{:},'visible','off'); 34else 35 h = figure(varargin{:}); 36end 37