Skip to content

Instantly share code, notes, and snippets.

@luizguilhermefr
Created October 15, 2018 23:06
Show Gist options
  • Save luizguilhermefr/ce71600dff6e97b1a6516ed9b6e4647d to your computer and use it in GitHub Desktop.
Save luizguilhermefr/ce71600dff6e97b1a6516ed9b6e4647d to your computer and use it in GitHub Desktop.
\begin{figure}[htb]
\begin{center}
\begin{tikzpicture}
\pgfplotsset{width=13cm,compat=newest}
\begin{axis}[
scale only axis,,
yticklabel style={
/pgf/number format/fixed,
/pgf/number format/precision=5
},
xticklabels={,,}
ymin=0,
ymax=0.3,
xmin=0,
xmax=49,
]
\addplot[color=blue]
coordinates {
(1, 0)
(2, 0)
(3, 0.19)
(4, 0.19)
(5, 0.19)
(6, 0.19)
(7, 0.19)
(8, 0.19)
(9, 0.19)
(10, 0.19)
(11, 0.19)
(12, 0.19)
(13, 0.19)
(14, 0.19)
(15, 0.19)
(16, 0.19)
(17, 0.19)
(18, 0.19)
(19, 0.19)
(20, 0.19)
(21, 0.19)
(22, 0.19)
(23, 0.19)
(24, 0.19)
(25, 0.19)
(26, 0.19)
(27, 0.19)
(28, 0.19)
(29, 0.19)
(30, 0.19)
(31, 0.19)
(32, 0.19)
(33, 0.19)
(34, 0.19)
(35, 0.19)
(36, 0.19)
(37, 0.19)
(38, 0.19)
(39, 0.19)
(40, 0.19)
(41, 0.19)
(42, 0)
(43, 0)
(44, 0)
(45, 0)
(46, 0)
(47, 0)
(48, 0)
(49, 0)
};
\addlegendentry{Taxa desejada ($kg/m^2$)}
\addplot[smooth, color=red]
coordinates {
(1, 0)
(2, 0)
(3, 0)
(4, 0)
(5, 0)
(6, 0.01)
(7, 0.1)
(8, 0.1)
(9, 0.1)
(10, 0.13)
(11, 0.14)
(12, 0.14)
(13, 0.14)
(14, 0.14)
(15, 0.14)
(16, 0.15)
(17, 0.17)
(18, 0.17)
(19, 0.17)
(20, 0.17)
(21, 0.18)
(22, 0.18)
(23, 0.18)
(24, 0.18)
(25, 0.18)
(26, 0.18)
(27, 0.19)
(28, 0.19)
(29, 0.19)
(30, 0.19)
(31, 0.19)
(32, 0.19)
(33, 0.18)
(34, 0.18)
(35, 0.19)
(36, 0.19)
(37, 0.18)
(38, 0.18)
(39, 0.19)
(40, 0.19)
(41, 0.19)
(42, 0.19)
(43, 0.16)
(44, 0.16)
(45, 0.1)
(46, 0.1)
(47, 0.06)
(48, 0.06)
(49, 0.02)
};
\addlegendentry{Taxa aplicada ($kg/m^2$)}
\end{axis}
\end{tikzpicture}
\caption{Valores de taxa esperados e obtidos para o ensaio com pior desempenho, com constantes $K_{p}=200$, $K_{i}=35$ e $K_{d}=20$ e erro de $0,0773$}\label{pic:pidTuningsBad}
\end{center}
\end{figure}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment