# Plot multiple lines in one graph

**URL:** https://forum.dynare.org/t/plot-multiple-lines-in-one-graph/10537
**Category:** Stochastic simulations
**Created:** [9 August 2017 13:53 UTC](https://forum.dynare.org/t/plot-multiple-lines-in-one-graph/10537 "2017-08-09T13:53:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![hamidrafik](https://forum.dynare.org/letter_avatar_proxy/v4/letter/h/9f8e36/32.png) [@hamidrafik](https://forum.dynare.org/u/hamidrafik)
#### Post date: [9 August 2017 13:53 UTC](https://forum.dynare.org/t/plot-multiple-lines-in-one-graph/10537/1 "2017-08-09T13:53:59Z")

</div>

Hello all,  
I want to plot multiple lines in one graph, the model is the same but for diffrent calibrations.  
I’m still new to dynare/matlab; is there a tutorial for such a work?

---

<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: [9 August 2017 13:58 UTC](https://forum.dynare.org/t/plot-multiple-lines-in-one-graph/10537/2 "2017-08-09T13:58:24Z")

</div>

This is a Matlab related question, not specific to Dynare a priori. Are you familiar with the Matlab’s `plot` function? If yes what is precisely your problem?

Best,  
Stéphane.

---

<div class="post-metadata">

### Author: ![hamidrafik](https://forum.dynare.org/letter_avatar_proxy/v4/letter/h/9f8e36/32.png) [@hamidrafik](https://forum.dynare.org/u/hamidrafik)
#### Post date: [9 August 2017 14:05 UTC](https://forum.dynare.org/t/plot-multiple-lines-in-one-graph/10537/3 "2017-08-09T14:05:00Z")

</div>

well, I read that Dynare stores the IRF’s and I should myself plot them again but I have no idea how to do so; second, I know how to plot simple functions on Matlab, but I have no idea how to plot Dynare stored IRF’s using Matlab

---

<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: [9 August 2017 14:46 UTC](https://forum.dynare.org/t/plot-multiple-lines-in-one-graph/10537/4 "2017-08-09T14:46:40Z")

</div>

Please see [Q: combining IRFs into subplotted figures & iterating?](https://forum.dynare.org/t/q-combining-irfs-into-subplotted-figures-iterating/3609) and [Multiple IRFs in one graph](https://forum.dynare.org/t/multiple-irfs/6052)

---

<div class="post-metadata">

### Author: ![tavakolianh](https://forum.dynare.org/letter_avatar_proxy/v4/letter/t/e9bcb4/32.png) [@tavakolianh](https://forum.dynare.org/u/tavakolianh)
#### Post date: [10 August 2017 08:02 UTC](https://forum.dynare.org/t/plot-multiple-lines-in-one-graph/10537/5 "2017-08-10T08:02:07Z")

</div>

You can also use dynare2tex. Here is the link

> [@Dynare2tex Version 1.1](https://forum.dynare.org/t/dynare2tex-version-1-1/4786):
>
> Dynare is a useful tools in analysing Dynamic Stochastic General Equilibrium (DSGE) models. This software contains different capabilities in manipulating DSGE models. Dynare gives its plot outputs as different formats which are available in MATLAB. However, Dynare have no option for comparing the Impulse Response Functions of different \*.mod files. Dynare2tex helps users to compare the IRFs of different \*.mod files and gives the results in the formats which are supported by MATLAB and new format…
