Page 1 of 1

Trace_plot help

PostPosted: Mon Apr 29, 2013 5:09 pm
by federico
Hello,
I have a very simple question.
I would like to analyzed the convergence of my MCMC using the command

trace_plot(options_,M_,estim_params_,'DeepParameter',2,'k_p');

Since I have a lot of parameters i would like to use the command subplot in order to obtain a more compact graph
but when i type

subplot(1,2,1);trace_plot(options_,M_,estim_params_,'DeepParameter',2,'k_p');
subplot(1,2,2);trace_plot(options_,M_,estim_params_,'DeepParameter',2,'k_i');

the results are two differents empty graphs (see the attachment).

How can I solve this problem?

Re: Trace_plot help

PostPosted: Mon Apr 29, 2013 9:34 pm
by jpfeifer
Because trace_plot internally has a figure command, thus creating a new figure with each call. This overrides your subplot command.

Re: Trace_plot help

PostPosted: Tue Apr 30, 2013 7:22 am
by federico
thanx to jpfeifer I solved the problem.
Simply I had to comment the line 97 of the trace_plot.m file.
Now It works.