Skip to content

Instantly share code, notes, and snippets.

@connors511
Created July 10, 2013 18:10
Show Gist options
  • Save connors511/5968668 to your computer and use it in GitHub Desktop.
Save connors511/5968668 to your computer and use it in GitHub Desktop.
\begin{figure}[htbp]
\centering
\begin{tikzpicture}[x=0.1cm,y=0.1cm]
\def\xmin{0}
\def\xmax{1024000}
\def\ymin{0}
\def\ymax{200}
% grid
%\draw[style=help lines, ystep=1, xstep=1] (\xmin,\ymin) grid (\xmax,\ymax);
% axes
\draw[->] (\xmin,\ymin) -- (\xmax,\ymin) node[above] {$Games$};
\draw[->] (\xmin,\ymin) -- (\xmin,\ymax) node[above] {$Perfects$};
% xticks and yticks
\foreach \x in {1000,2000,4000,8000,...,1024000}
\node at (\x, \ymin) [below] {\x};
\foreach \y in {0,20,...,200}
\node at (\xmin,\y) [left] {\y};
% plot the data from the file data.dat
% smooth the curve and mark the data point with a dot
\draw[color=blue] plot[mark=*,mark size=2pt] file {appendix/results/2-grade-olin0275-perfects.dat}
node [above] {Actual};
\end{tikzpicture}
\caption{A player from 2nd grade experiencing adapting difficulty}
\label{fig:log_diff1}
\end{figure}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment