I'm trying to plot a function with pgfplots for LaTeX. Unfortunately, pgfplots plots the function incorrectly. Here is the LaTeX code I use:
\begin{figure}[H]
\centering
\begin{tikzpicture}
\begin{axis}[xlabel=Gameplays,ylabel=Rating]
\addplot+[gray,domain=1:30]
{0.5 + 0.5 * ((atan(x) * 2 / pi)^11.79)};
\end{axis}
\end{tikzpicture}
\caption{Omzetten van aantal gameplays tot impliciete rating}
\label{fig:omzetten_impliciete_ratings}
\end{figure}
Here is how the function should look like:
This is how it is plotted:
Does anyone know what I do wrong?
Thanks in advance!