\documentclass[tikz]{standalone}

\input{../common.tex}

\usepackage{tikz,pgfplots}
\pgfplotsset{compat=newest}
\usetikzlibrary{patterns, matrix, arrows, decorations.pathreplacing, decorations.markings, calc}
\pgfplotsset{plot coordinates/math parser=false}
\usepgfplotslibrary{patchplots}
\newlength\figureheight
\newlength\figurewidth

\pgfplotsset{
  table/search path={./irfs-data},
  every tick label/.append style={font=\tiny}
}

\begin{document}

\begin{tikzpicture}

  \matrix[ampersand replacement=\&]{

    \begin{axis}[scale=0.25, title= \tiny{Nominal interest rate}, enlargelimits=false, color=blue!30!black, thick, grid=major, grid style={line width=.2pt, draw=black!10}]
      \addplot[style={blue,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/backward-with-uip/res_U2_TP_10Y/U2_STN.dat};
      \addplot[style={red,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/full/res_U2_TP_10Y/U2_STN.dat};
      \addplot[style={green,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/hybrid/res_U2_TP_10Y/U2_STN.dat};
    \end{axis}

    \&

    \begin{axis}[scale=0.25, title= \tiny{Output gap}, enlargelimits=false, color=blue!30!black, thick, grid=major, grid style={line width=.2pt, draw=black!10}]
      \addplot[style={blue,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/backward-with-uip/res_U2_TP_10Y/U2_G_YER.dat};
      \addplot[style={red,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/full/res_U2_TP_10Y/U2_G_YER.dat};
      \addplot[style={green,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/hybrid/res_U2_TP_10Y/U2_G_YER.dat};
    \end{axis}

    \&

    \begin{axis}[scale=0.25, title= \tiny{Inflation}, enlargelimits=false, color=blue!30!black, thick, grid=major, grid style={line width=.2pt, draw=black!10}]
      \addplot[style={blue,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/backward-with-uip/res_U2_TP_10Y/U2_A_YED.dat};
      \addplot[style={red,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/full/res_U2_TP_10Y/U2_A_YED.dat};
      \addplot[style={green,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/hybrid/res_U2_TP_10Y/U2_A_YED.dat};
    \end{axis}

    \&

    \begin{axis}[scale=0.25, title= \tiny{Long term interest rate}, enlargelimits=false, color=blue!30!black, thick, grid=major, grid style={line width=.2pt, draw=black!10}]
      \addplot[style={blue,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/backward-with-uip/res_U2_TP_10Y/U2_OIS_10Y.dat};
      \addplot[style={red,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/full/res_U2_TP_10Y/U2_OIS_10Y.dat};
      \addplot[style={green,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/hybrid/res_U2_TP_10Y/U2_OIS_10Y.dat};
    \end{axis}

    \\

    \begin{axis}[scale=0.25, title= \tiny{Output}, enlargelimits=false, color=blue!30!black, thick, grid=major, grid style={line width=.2pt, draw=black!10}]
      \addplot[style={blue,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/backward-with-uip/res_U2_TP_10Y/U2_YER.dat};
      \addplot[style={red,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/full/res_U2_TP_10Y/U2_YER.dat};
      \addplot[style={green,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/hybrid/res_U2_TP_10Y/U2_YER.dat};
    \end{axis}

    \&

    \begin{axis}[scale=0.25, title= \tiny{Consumption}, enlargelimits=false, color=blue!30!black, thick, grid=major, grid style={line width=.2pt, draw=black!10}]
      \addplot[style={blue,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/backward-with-uip/res_U2_TP_10Y/U2_HH_COR.dat};
      \addplot[style={red,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/full/res_U2_TP_10Y/U2_HH_COR.dat};
      \addplot[style={green,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/hybrid/res_U2_TP_10Y/U2_HH_COR.dat};
    \end{axis}

    \&

    \begin{axis}[scale=0.25, title= \tiny{Investment}, enlargelimits=false, color=blue!30!black, thick, grid=major, grid style={line width=.2pt, draw=black!10}]
      \addplot[style={blue,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/backward-with-uip/res_U2_TP_10Y/U2_BU_ITR.dat};
      \addplot[style={red,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/full/res_U2_TP_10Y/U2_BU_ITR.dat};
      \addplot[style={green,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/hybrid/res_U2_TP_10Y/U2_BU_ITR.dat};
    \end{axis}

    \&

    \begin{axis}[scale=0.25, title= \tiny{Exchange rate}, enlargelimits=false, color=blue!30!black, thick, grid=major, grid style={line width=.2pt, draw=black!10}]
      \addplot[style={blue,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/backward-with-uip/res_U2_TP_10Y/U2_EENX.dat};
      \addplot[style={red,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/full/res_U2_TP_10Y/U2_EENX.dat};
      \addplot[style={green,mark=none}] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/hybrid/res_U2_TP_10Y/U2_EENX.dat};
    \end{axis}\\
  };

\end{tikzpicture}

\end{document}