From a40807caa9150c5d85fd04079feb2ec6b55eed0a Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer <jpfeifer@gmx.de> Date: Mon, 29 Jun 2020 07:39:55 +0200 Subject: [PATCH] plot_priors.m: Allow for optional title --- matlab/plot_priors.m | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/matlab/plot_priors.m b/matlab/plot_priors.m index 02d7826688..7d8aec8f7c 100644 --- a/matlab/plot_priors.m +++ b/matlab/plot_priors.m @@ -1,19 +1,21 @@ -function plot_priors(bayestopt_,M_,estim_params_,options_) +function plot_priors(bayestopt_,M_,estim_params_,options_,optional_title) % function plot_priors % plots prior density % % INPUTS -% o bayestopt_ [structure] -% o M_ [structure] -% o options_ [structure] -% +% o bayestopt_ [structure] +% o M_ [structure] +% o estim_params_ [structure] +% o options_ [structure] +% o optional_title [string] + % OUTPUTS % None % % SPECIAL REQUIREMENTS % None -% Copyright (C) 2004-2017 Dynare Team +% Copyright (C) 2004-2020 Dynare Team % % This file is part of Dynare. % @@ -31,8 +33,11 @@ function plot_priors(bayestopt_,M_,estim_params_,options_) % along with Dynare. If not, see <http://www.gnu.org/licenses/>. TeX = options_.TeX; - -figurename = 'Priors'; +if nargin<5 + figurename = 'Priors'; +else + figurename = optional_title; +end npar = length(bayestopt_.p1); [nbplt,nr,nc,lr,lc,nstar] = pltorg(npar); -- GitLab