Fix figures and add intro figure

This commit is contained in:
jfmcarreira committed 2018-08-01 03:13:39 +01:00
1 parent 74109b2c4c
commit cd670b8b51
51 files changed
+243 -395

No files matched your search

View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
@@ -1,177 +0,0 @@

\newcommand{\scale}{1}
\newcommand{\frameScale}{.3}
% \newcommand{\TikZxscale}{0.55}
\newcommand{\xfshift}{8cm}
% \newcommand{\TikZyslant}{0.4}
% \newcommand{\TikZyfshift}{0.05cm}
\definecolor{colorFrameBackground}{rgb}{.82,.89,.95}
% \definecolor{colorErrorsRegion}{rgb}{.163,.547,.757}
\definecolor{colorErrors}{rgb}{.16,.40,.40}
\definecolor{colorErrorsRegion}{rgb}{.209,.705,.740}
\usetikzlibrary{patterns}
\makeatletter
\pgfdeclareshape{test shape}
{
\inheritsavedanchors[from=rectangle]
\inheritanchor[from=rectangle]{center}
\backgroundpath
{
\def\my@color{.}%
\ifx\tikz@strokecolor\pgfutil@empty
\else
\let\my@color\tikz@strokecolor
\fi
\pgfsetfillpattern{north east lines}{\my@color}
\pgfpathrectanglecorners{\pgfpoint{0}{0}}{\pgfpoint{1cm}{1cm}}
\pgfusepath{fill}
}
}
\makeatother
\newcommand{\FillFrame}[1]
{
\draw[fill=#1,fill opacity=1, very thick] (0,0) rectangle (8+1,8+1); % Opacity
% \draw[thick] (0,0) rectangle (#2+1,#2+1);
% \foreach \x in {1,...,#2}
% \draw (\x,0) -- ++(0,#2+1);
% \foreach \y in {1,...,#2}
% \draw (0,\y) -- ++(#2+1,0);
}
\newcommand{\DrawFrame}[1]
{
\draw[fill=#1,fill opacity=1, very thick] (0,0) rectangle (8+1,8+1); % Opacity
% \draw[thick] (0,0) rectangle (#2+1,#2+1);
% \foreach \x in {1,...,#2}
% \draw (\x,0) -- ++(0,#2+1);
% \foreach \y in {1,...,#2}
% \draw (0,\y) -- ++(#2+1,0);
}
\newcommand{\DrawBlock}[3]
{
\DrawBlockWithSize{#1}{#2}{#3}{1}{1}
}
\newcommand{\DrawBlockWithSize}[5]
{
\draw[draw=#1, fill=#1] (#2,#3) rectangle ++(#4 cm,#5 cm);
}
\begin{tikzpicture}[use Hobby shortcut,closed=true]
\tikzstyle{refmv_line}=[thick,draw=black]
\tikzstyle{refmv}=[refmv_line,-latex,densely dashed]
\tikzstyle{refmv_0}=[refmv,]
\tikzstyle{refmv_1}=[refmv_0]
\tikzstyle{errorBlock}=[draw=colorErrors, fill=colorErrors]
\tikzstyle{errorPropagation}=[draw=colorErrorsRegion, fill=colorErrorsRegion]
\coordinate (ErrorPosition) at (4,4);
\def\errorPosX{3}
\def\errorPosY{6}
\begin{scope}[scale=\frameScale*.95, yshift=2*\TikZyfshift, xshift=-2*\xfshift]
\DrawFrame{colorFrameBackground}
% \node at (12cm/2,-1.5cm) { $f_{t}$ };
\draw[errorBlock] (\errorPosX,\errorPosY) rectangle ++(1cm,1cm);
\foreach \x in {\errorPosX,...,7}
\draw[errorPropagation] (\x+1,\errorPosY) rectangle ++(1 cm,1 cm);
\foreach \y in {0.1,1,2,3,4,5}
\foreach \x in {0.1,1,2,3,4,5,6,7,8}
\draw[errorPropagation] (\x,\y) rectangle ++(1 cm,1 cm);
\draw (0,\errorPosY) -- ++(\errorPosX + 1,0) -- ++(0,1) -- ++(8-\errorPosX,0);
\end{scope}
\begin{scope}[scale=\frameScale, yshift=2*\TikZyfshift, xshift=0*\xfshift, yslant=\TikZyslant,xscale=\TikZxscale]
\DrawFrame{colorFrameBackground}
\node at (12cm/2,-1.5cm) { $f_{t}$ };
\draw[errorBlock] (\errorPosX,\errorPosY) rectangle ++(1cm,1cm);
\end{scope}
\begin{scope}[scale=\frameScale, yshift=2*\TikZyfshift, xshift=1*\xfshift, yslant=\TikZyslant,xscale=\TikZxscale]
\DrawFrame{colorFrameBackground}
\node at (12cm/2,-1.5cm) { $f_{t+1}$ };
% \begin{scope}[yshift=3.8cm, xshift=2.4cm]
% \draw[erros] plot[scale=.3,smooth, tension=.7] coordinates {(0,0) (.5,3) (2.5,4) (5,3.5) (7.5,4) (8.5,3) (8.5,1) (10,-1.5) (3.5,0) (.5,-1.5) (0,0)};
% \end{scope}
\draw[errorPropagation] (\errorPosX,\errorPosY) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX,\errorPosY -1) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +1,\errorPosY) rectangle ++(1cm,1cm);
\end{scope}
\begin{scope}[scale=\frameScale, yshift=2*\TikZyfshift, xshift=2*\xfshift, yslant=\TikZyslant,xscale=\TikZxscale]
\DrawFrame{colorFrameBackground}
\node at (12cm/2,-1.5cm) { $f_{t+2}$ };
\draw[errorPropagation] (\errorPosX,\errorPosY) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +1,\errorPosY) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +2,\errorPosY) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX,\errorPosY -1) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX+1,\errorPosY -1) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX+1,\errorPosY -2) rectangle ++(1cm,1cm);
\end{scope}
\begin{scope}[scale=\frameScale, yshift=3*\TikZyfshift, xshift=3*\xfshift, yslant=\TikZyslant,xscale=\TikZxscale]
\DrawFrame{colorFrameBackground}
\node at (12cm/2,-1.5cm) { $f_{t+3}$ };
% \begin{scope}[yshift=3.1cm, xshift=1.9cm]
% \draw[erros] plot[scale=.5,smooth, tension=.7] coordinates {(0,0) (.5,3) (2.5,4) (5,3.5) (7.5,4) (8.5,3) (8.5,1) (10,-1.5) (3.5,0) (.5,-1.5) (0,0)};
% \end{scope}
\draw[errorPropagation] (\errorPosX ,\errorPosY) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +1,\errorPosY) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +2,\errorPosY) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX ,\errorPosY -1) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +1,\errorPosY -1) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +2,\errorPosY -1) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +0,\errorPosY -2) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +1,\errorPosY -2) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +0,\errorPosY -3) rectangle ++(1cm,1cm);
\end{scope}
\begin{scope}[scale=\frameScale, yshift=4*\TikZyfshift, xshift=4*\xfshift, yslant=\TikZyslant,xscale=\TikZxscale]
\DrawFrame{colorFrameBackground}
\node at (12cm/2,-1.5cm) { $f_{t+4}$ };
% \begin{scope}[yshift=3cm, xshift=1.8cm]
% \draw[erros] plot[scale=.6,smooth, tension=.7] coordinates {(0,0) (.5,3) (2.5,4) (5,3.5) (7.5,4) (8.5,3) (8.5,1) (10,-1.5) (3.5,0) (.5,-1.5) (0,0)};
% \end{scope}
\draw[errorPropagation] (\errorPosX ,\errorPosY) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +1,\errorPosY) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +2,\errorPosY) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +3,\errorPosY) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX ,\errorPosY -1) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +1,\errorPosY -1) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +2,\errorPosY -1) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +3,\errorPosY -1) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +4,\errorPosY -1) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +0,\errorPosY -2) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +1,\errorPosY -2) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +2,\errorPosY -2) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +0,\errorPosY -3) rectangle ++(1cm,1cm);
\draw[errorPropagation] (\errorPosX +2,\errorPosY -3) rectangle ++(1cm,1cm);
\end{scope}
\path[draw, -latex, thick] (-.5cm,-.5cm) -- ++(12.5cm,0) node[pos=1, yshift=-.2cm] {$t$};
\end{tikzpicture}