\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}

  \begin{axis}[width=3.904in,
    height=2.985in,
    at={(1.517in,5.109in)},
    scale only axis,
    xmin=0,
    xmax=60,
    axis background/.style={fill=white},
    title={Nominal interest rate},
    xmajorgrids,
    ymajorgrids,
    ]
    \addplot [color=red!5!blue, line width=1.5pt] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red!10!blue, line width=1.5pt] table[x index=0, y index=2, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red!15!blue, line width=1.5pt] table[x index=0, y index=3, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red!20!blue, line width=1.5pt] table[x index=0, y index=4, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red!25!blue, line width=1.5pt] table[x index=0, y index=5, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red!30!blue, line width=1.5pt] table[x index=0, y index=6, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red!35!blue, line width=1.5pt] table[x index=0, y index=7, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red!40!blue, line width=1.5pt] table[x index=0, y index=8, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red!45!blue, line width=1.5pt] table[x index=0, y index=9, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=violet, line width=1.5pt] table[x index=0, y index=10, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red!55!blue, line width=1.5pt] table[x index=0, y index=11, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red!60!blue, line width=1.5pt] table[x index=0, y index=12, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red!65!blue, line width=1.5pt] table[x index=0, y index=13, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red!70!blue, line width=1.5pt] table[x index=0, y index=14, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=purple, line width=1.5pt] table[x index=0, y index=15, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red!80!blue, line width=1.5pt] table[x index=0, y index=16, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red!85!blue, line width=1.5pt] table[x index=0, y index=17, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red!90!blue, line width=1.5pt] table[x index=0, y index=18, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red!95!blue, line width=1.5pt] table[x index=0, y index=19, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
    \addplot [color=red, line width=1.5pt] table[x index=0, y index=19, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_STN.dat};
  \end{axis}

  \begin{axis}[
    width=3.904in,
    height=2.985in,
    at={(6.654in,5.109in)},
    scale only axis,
    xmin=0,
    xmax=60,
    axis background/.style={fill=white},
    title={Output gap},
    xmajorgrids,
    ymajorgrids,
    ]
    \addplot [color=red!5!blue, line width=1.5pt] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red!10!blue, line width=1.5pt] table[x index=0, y index=2, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red!15!blue, line width=1.5pt] table[x index=0, y index=3, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red!20!blue, line width=1.5pt] table[x index=0, y index=4, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red!25!blue, line width=1.5pt] table[x index=0, y index=5, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red!30!blue, line width=1.5pt] table[x index=0, y index=6, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red!35!blue, line width=1.5pt] table[x index=0, y index=7, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red!40!blue, line width=1.5pt] table[x index=0, y index=8, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red!45!blue, line width=1.5pt] table[x index=0, y index=9, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=violet, line width=1.5pt] table[x index=0, y index=10, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red!55!blue, line width=1.5pt] table[x index=0, y index=11, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red!60!blue, line width=1.5pt] table[x index=0, y index=12, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red!65!blue, line width=1.5pt] table[x index=0, y index=13, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red!70!blue, line width=1.5pt] table[x index=0, y index=14, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=purple, line width=1.5pt] table[x index=0, y index=15, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red!80!blue, line width=1.5pt] table[x index=0, y index=16, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red!85!blue, line width=1.5pt] table[x index=0, y index=17, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red!90!blue, line width=1.5pt] table[x index=0, y index=18, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red!95!blue, line width=1.5pt] table[x index=0, y index=19, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
    \addplot [color=red, line width=1.5pt] table[x index=0, y index=19, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_G_YER.dat};
  \end{axis}

  \begin{axis}[
    width=3.904in,
    height=2.985in,
    at={(1.517in,0.962in)},
    scale only axis,
    xmin=0,
    xmax=60,
    axis background/.style={fill=white},
    title={Inflation},
    xmajorgrids,
    ymajorgrids,
    legend columns = 2,
    legend style={at={(1.67, 0.15)}, anchor=south west, legend cell align=left, align=left, fill=none, draw=none, font=\normalsize}
    ]
    \addplot [color=red!5!blue, line width=1.5pt] table[x index=0, y index=1, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=1}
    \addplot [color=red!10!blue, line width=1.5pt] table[x index=0, y index=2, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=2}
    \addplot [color=red!15!blue, line width=1.5pt] table[x index=0, y index=3, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=3}
    \addplot [color=red!20!blue, line width=1.5pt] table[x index=0, y index=4, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=4}
    \addplot [color=red!25!blue, line width=1.5pt] table[x index=0, y index=5, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=5}
    \addplot [color=red!30!blue, line width=1.5pt] table[x index=0, y index=6, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=6}
    \addplot [color=red!35!blue, line width=1.5pt] table[x index=0, y index=7, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=7}
    \addplot [color=red!40!blue, line width=1.5pt] table[x index=0, y index=8, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=8}
    \addplot [color=red!45!blue, line width=1.5pt] table[x index=0, y index=9, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=9}
    \addplot [color=violet, line width=1.5pt] table[x index=0, y index=10, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=9}
    \addplot [color=red!55!blue, line width=1.5pt] table[x index=0, y index=11, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=10}
    \addplot [color=red!60!blue, line width=1.5pt] table[x index=0, y index=12, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=11}
    \addplot [color=red!65!blue, line width=1.5pt] table[x index=0, y index=13, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=12}
    \addplot [color=red!70!blue, line width=1.5pt] table[x index=0, y index=14, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=13}
    \addplot [color=purple, line width=1.5pt] table[x index=0, y index=15, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=14}
    \addplot [color=red!80!blue, line width=1.5pt] table[x index=0, y index=16, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=15}
    \addplot [color=red!85!blue, line width=1.5pt] table[x index=0, y index=17, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=16}
    \addplot [color=red!90!blue, line width=1.5pt] table[x index=0, y index=18, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=17}
    \addplot [color=red!95!blue, line width=1.5pt] table[x index=0, y index=19, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=18}
    \addplot [color=red, line width=1.5pt] table[x index=0, y index=19, col sep=space]{../../irfs-data/hybrid/forward-guidance/full/U2_A_YED.dat}; \addlegendentry{t=19}
  \end{axis}


\end{tikzpicture}

\end{document}