# Plotting IRF on the same graph

**URL:** <https://forum.dynare.org/t/plotting-irf-on-the-same-graph/25149>\
**Category:** Stochastic simulations\
**Created:** [11 February 2024 12:14 UTC](https://forum.dynare.org/t/plotting-irf-on-the-same-graph/25149 "2024-02-11T12:14:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hrant](https://forum.dynare.org/letter_avatar_proxy/v4/letter/h/f07891/32.png) [@Hrant](https://forum.dynare.org/u/Hrant)\
**Post date:** [11 February 2024 12:14 UTC](https://forum.dynare.org/t/plotting-irf-on-the-same-graph/25149/1 "2024-02-11T12:14:42Z")

</div>

HI, i would like to know how i can generate different IRF’s for AR(1) process for different values for ϕ1 and plot them on the same graph.

---

<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:** [12 February 2024 09:41 UTC](https://forum.dynare.org/t/plotting-irf-on-the-same-graph/25149/2 "2024-02-12T09:41:12Z")

</div>

See e.g.

> [@Q: combining IRFs into subplotted figures & iterating?](https://forum.dynare.org/t/q-combining-irfs-into-subplotted-figures-iterating/3609):
>
> Hi all, I am really frustrated by the following issue but didn’t find answers in the forum, so I’m afraid I had to raise the frequently asked problem again. The setup is that I have two models, and want to compare the IRFs of each endogenous variables due to exo shocks. Say, model 1 and 2, both have endo variables y and c, exo shocks ea and em. So, the names of two models’ variables are totally the same. Now, I want to plot two IRF figures, one for response of shock ea, another em.Each figure h…
