From c1e9b3f822789944980009c57babd4dbeb07ca6c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?=
 <stephane.adjemian@univ-lemans.fr>
Date: Mon, 14 Nov 2011 17:56:27 +0100
Subject: [PATCH] Do not plot the priors if option nograph is used. (cherry
 picked from commit bcf7e8821730b2e0916e71b3198f3eb734e73b8e)

Conflicts:

	matlab/dynare_estimation_init.m
---
 matlab/dynare_estimation_init.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/dynare_estimation_init.m b/matlab/dynare_estimation_init.m
index 8c067d2d7..bef0fecf9 100644
--- a/matlab/dynare_estimation_init.m
+++ b/matlab/dynare_estimation_init.m
@@ -124,7 +124,7 @@ if ~isempty(estim_params_)
     [xparam1,estim_params_,bayestopt_,lb,ub,M_] = set_prior(estim_params_,M_,options_);
     if any(bayestopt_.pshape > 0)
         % Plot prior densities.
-        if options_.plot_priors
+        if ~options_.nograph && options_.plot_priors
             plot_priors(bayestopt_,M_,options_)
         end
         % Set prior bounds
-- 
GitLab