Trace_plot help

I have a very simple question.
I would like to analyzed the convergence of my MCMC using the command


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


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.