Trace_plot help

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?
fig2.pdf (2.99 KB)
fig1.pdf (2.99 KB)

Because trace_plot internally has a figure command, thus creating a new figure with each call. This overrides your subplot command.

thanx to jpfeifer I solved the problem.
Simply I had to comment the line 97 of the trace_plot.m file.
Now It works.