Trace_plot help

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Trace_plot help

Postby federico » Mon Apr 29, 2013 5:09 pm

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?
Attachments
fig2.pdf
(2.99 KiB) Downloaded 57 times
fig1.pdf
(2.99 KiB) Downloaded 53 times
federico
 
Posts: 68
Joined: Fri Mar 30, 2012 4:46 pm

Re: Trace_plot help

Postby jpfeifer » Mon Apr 29, 2013 9:34 pm

Because trace_plot internally has a figure command, thus creating a new figure with each call. This overrides your subplot command.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Trace_plot help

Postby federico » Tue Apr 30, 2013 7:22 am

thanx to jpfeifer I solved the problem.
Simply I had to comment the line 97 of the trace_plot.m file.
Now It works.
federico
 
Posts: 68
Joined: Fri Mar 30, 2012 4:46 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests