# Drawing Charts in DSGE models

**URL:** <https://forum.dynare.org/t/drawing-charts-in-dsge-models/19177>\
**Category:** Replication Attempts\
**Created:** [25 October 2021 12:59 UTC](https://forum.dynare.org/t/drawing-charts-in-dsge-models/19177 "2021-10-25T12:59:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorj2021](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/57b2e6/32.png) [@jorj2021](https://forum.dynare.org/u/jorj2021)\
**Post date:** [25 October 2021 12:59 UTC](https://forum.dynare.org/t/drawing-charts-in-dsge-models/19177/1 "2021-10-25T12:59:54Z")

</div>

Hi  
Friends in models DSGE, how can we draw two graphs on one axis?

And the second question is, can we change the vertical axis numbers? For example, raised and lowered the number zero on the vertical axis?

---

<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:** [25 October 2021 14:04 UTC](https://forum.dynare.org/t/drawing-charts-in-dsge-models/19177/2 "2021-10-25T14:04:23Z")

</div>

> [@Model simulation vs data](https://forum.dynare.org/t/model-simulation-vs-data/10888/4):
>
> No. If you want to combine plots not related to Dynare output, you have to do this manually using Matlab’s plotting capabilities

---

<div class="post-metadata">

**Author:** ![jorj2021](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/57b2e6/32.png) [@jorj2021](https://forum.dynare.org/u/jorj2021)\
**Post date:** [25 October 2021 18:50 UTC](https://forum.dynare.org/t/drawing-charts-in-dsge-models/19177/3 "2021-10-25T18:50:25Z")

</div>

I mean combining graphs from dynar output. How can these diagrams be drawn in one diagram?  
Do they have a special code?  
if you have the code send it to me. Thank

---

<div class="post-metadata">

**Author:** ![DoubleBass](https://forum.dynare.org/user_avatar/forum.dynare.org/doublebass/32/17420_2.png) [@DoubleBass](https://forum.dynare.org/u/DoubleBass)\
**Post date:** [25 October 2021 20:25 UTC](https://forum.dynare.org/t/drawing-charts-in-dsge-models/19177/4 "2021-10-25T20:25:42Z")

</div>

Look through the forum this question has been answered many times. But it goes along the lines of: [Plotting.m](https://forum.dynare.org/uploads/short-url/fdZcS1gjuKsrCHUauuzxZqJLbd2.m) (1.1 KB)

---

<div class="post-metadata">

**Author:** ![jorj2021](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/57b2e6/32.png) [@jorj2021](https://forum.dynare.org/u/jorj2021)\
**Post date:** [25 October 2021 20:34 UTC](https://forum.dynare.org/t/drawing-charts-in-dsge-models/19177/5 "2021-10-25T20:34:41Z")

</div>

I searched before asking but did not find an answer. That’s why I asked the question.

What title should I search for and find the same questions you said ??

Thank you

---

<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:** [26 October 2021 06:23 UTC](https://forum.dynare.org/t/drawing-charts-in-dsge-models/19177/6 "2021-10-26T06:23:28Z")

</div>

[Combining plots for IRFs with Matlab](https://forum.dynare.org/t/combining-plots-for-irfs-with-matlab/13258) and [Q: combining IRFs into subplotted figures & iterating?](https://forum.dynare.org/t/q-combining-irfs-into-subplotted-figures-iterating/3609) come to mind

---

<div class="post-metadata">

**Author:** ![jorj2021](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/57b2e6/32.png) [@jorj2021](https://forum.dynare.org/u/jorj2021)\
**Post date:** [26 October 2021 08:43 UTC](https://forum.dynare.org/t/drawing-charts-in-dsge-models/19177/7 "2021-10-26T08:43:21Z")

</div>

It seems you did not understand my[Doc1.pdf](https://forum.dynare.org/uploads/short-url/elJei3HhzOnpKUIUPHEite6Rzkv.pdf) (84.3 KB)  
question. I mean a diagram like the file I attached.

---

<div class="post-metadata">

**Author:** ![DoubleBass](https://forum.dynare.org/user_avatar/forum.dynare.org/doublebass/32/17420_2.png) [@DoubleBass](https://forum.dynare.org/u/DoubleBass)\
**Post date:** [26 October 2021 11:06 UTC](https://forum.dynare.org/t/drawing-charts-in-dsge-models/19177/8 "2021-10-26T11:06:27Z")

</div>

Look at the file I uploaded before (Plotting.m) which does exactly that. You have to do it in Matlab. The goal is to run your different Dynare models, save them, and then plot the results however you want in Dynare.  
Isn’t this exactly what is shown in the plot of Doc1.pdf?

---

<div class="post-metadata">

**Author:** ![jorj2021](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/57b2e6/32.png) [@jorj2021](https://forum.dynare.org/u/jorj2021)\
**Post date:** [27 October 2021 05:24 UTC](https://forum.dynare.org/t/drawing-charts-in-dsge-models/19177/9 "2021-10-27T05:24:29Z")

</div>

Thank you. Yes, I saw the PDF, but it is not clear to me because I have not drawn such diagrams so far and I do not know how to work with the code of these diagrams.
