dynare cap
ending_cell={'_e_v','_e_g'};

figure
var={'yy','nx','cc','ii','nn', 'kk','u', 'a'};
color_string={'k-','r--'};
for ii=1:length(ending_cell)
    for jj=1:length(var)
        subplot(2,4,jj,'align')
        hold on
        plot(1:options_.irf,oo_.irfs.([var{1,jj},ending_cell{1,ii}]),color_string{ii},'LineWidth',1);
        title([var{1,jj}])
    end
end