From 993822d0f04b86b4dc54d4c80ef214d48aae12a7 Mon Sep 17 00:00:00 2001 From: MichelJuillard Date: Thu, 19 Oct 2023 09:27:39 +0200 Subject: [PATCH] minor change --- src/estimation/estimation.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/estimation/estimation.jl b/src/estimation/estimation.jl index 33b25ce2..7e548ca8 100644 --- a/src/estimation/estimation.jl +++ b/src/estimation/estimation.jl @@ -107,6 +107,7 @@ function estimation!(context, field::Dict{String, Any}) estimated_parameters = context.work.estimated_parameters initial_parameter_values = get_initial_value_or_mean() set_estimated_parameters!(context, initial_parameter_values) + @show options.plot_priors if options.plot_priors plot_priors(context, estimated_parameters.name) end @@ -1260,8 +1261,8 @@ function plot_priors(context, names, n_points = 100) prior_pdfs = hcat(prior_pdfs...) prior_x_axes = hcat(prior_x_axes...) names = hcat(names...) - f = Plots.plot(prior_x_axes, prior_pdfs, layout=n_plots, title=names, linecolor=:darkgrey, labels=false, linewidth=3) - f + f = Plots.plot(prior_x_axes, prior_pdfs, layout=n_plots, title=names, linecolor=:darkgrey, labels=false, linewidth=2) + display(f) end function transform_chains(chains, t, posterior_density)