# Save MCMC diagnostic figures automatically

**URL:** <https://forum.dynare.org/t/save-mcmc-diagnostic-figures-automatically/1848>\
**Category:** Dynare help (legacy posts)\
**Created:** [15 February 2011 22:19 UTC](https://forum.dynare.org/t/save-mcmc-diagnostic-figures-automatically/1848 "2011-02-15T22:19:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jill1009](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/57b2e6/32.png) [@jill1009](https://forum.dynare.org/u/jill1009)\
**Post date:** [15 February 2011 22:19 UTC](https://forum.dynare.org/t/save-mcmc-diagnostic-figures-automatically/1848/1 "2011-02-15T22:19:29Z")

</div>

Dynare automatically save the figures for prior distribution and the IRF, how could make it also automatically save figures for MCMC diagnostic and the PriorsandPosteriors distribution and also the smoothed variables?  
Thank you very much!  
Ji

---

<div class="post-metadata">

**Author:** ![rzulfadin](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/22d042/32.png) [@rzulfadin](https://forum.dynare.org/u/rzulfadin)\
**Post date:** [17 February 2011 00:30 UTC](https://forum.dynare.org/t/save-mcmc-diagnostic-figures-automatically/1848/2 "2011-02-17T00:30:47Z")

</div>

i’ve got the same question. meanwhile i use this matlab code for saving several figures.

[mathworks.com/matlabcentral/ … ve-figures](http://www.mathworks.com/matlabcentral/fileexchange/28312-save-figures)

cheers,  
rz

---

<div class="post-metadata">

**Author:** ![jill1009](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/57b2e6/32.png) [@jill1009](https://forum.dynare.org/u/jill1009)\
**Post date:** [17 February 2011 16:36 UTC](https://forum.dynare.org/t/save-mcmc-diagnostic-figures-automatically/1848/3 "2011-02-17T16:36:58Z")

</div>

Thanks very much, rz! That’s very helpful!  
Ji

---

<div class="post-metadata">

**Author:** ![stepan-a](https://forum.dynare.org/user_avatar/forum.dynare.org/stepan-a/32/6652_2.png) [@stepan-a](https://forum.dynare.org/u/stepan-a)\
**Post date:** [2 March 2011 08:55 UTC](https://forum.dynare.org/t/save-mcmc-diagnostic-figures-automatically/1848/4 "2011-03-02T08:55:39Z")

</div>

These plots are saved in the subfolder \<NAME\_OF\_YOUR\_MOD\_FILE\_WITHOUT\_EXTENSION\> in pdf, eps and fig files.  
Best, Stéphane.

---

<div class="post-metadata">

**Author:** ![Deb](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/ecccb3/32.png) [@Deb](https://forum.dynare.org/u/Deb)\
**Post date:** [4 July 2020 08:31 UTC](https://forum.dynare.org/t/save-mcmc-diagnostic-figures-automatically/1848/5 "2020-07-04T08:31:59Z")

</div>

Bonjour Stephane,

the image files are only saved as .eps format. I tried to look for pdf in the subfolder and the main folder but there is nothing. Can you please help ? Is there any code for dynare to save the images directly in pdf mode without creating .eps ?

Merci!

Deb

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [4 July 2020 12:25 UTC](https://forum.dynare.org/t/save-mcmc-diagnostic-figures-automatically/1848/6 "2020-07-04T12:25:19Z")

</div>

You need to set `graph_format = PDF`
