# Combining IRFs of two scenarios

Hi
I have one model with two scenarios .The IRFs for each variable are three , for example y , y_nd and y_gap .How can i combine these IRFs for each variable in one graph?
I saw ( Q: combining IRFs into subplotted figures & iterating? ) But i can’t use it because i think it is related to two model with same variables.

Thanks

If the shock is name `epsilon` then

``````plot(1:options_.irf,oo_.irfs.y_epsilon,1:options_.irf,oo_.irfs.y_nd_epsilon,1:options_.irf,oo_.irfs.y_gap_epsilon)
``````
1 Like

Thank you prof. Pfeifer
This command combines IRFs curve together very well but does not specify which one is relevant to which scenario.How can i label the curve ?

1.pdf (182.4 KB)

1 Like

Thank you