handouts/ho02.tex
changeset 263 92e6985018ae
parent 262 ee4304bc6350
child 268 18bef085a7ca
--- a/handouts/ho02.tex	Sun Sep 28 22:30:25 2014 +0100
+++ b/handouts/ho02.tex	Mon Sep 29 00:45:38 2014 +0100
@@ -4,7 +4,7 @@
 \usepackage{../graphics}
 \usepackage{../data}
 
-
+\pgfplotsset{compat=1.11}
 \begin{document}
 
 \section*{Handout 2}
@@ -14,9 +14,9 @@
 than the matchers from regular expression libraries in Ruby and
 Python (the plots on the left). These plots show the running 
 time for the evil regular expression $a?^{\{n\}}a^{\{n\}}$.
-Note the different scales in each plot.
+Note the different scales of the $x$-axes. 
 
-\pgfplotsset{compat=1.11}
+
 \begin{center}
 \begin{tabular}{@{}cc@{}}
 \begin{tikzpicture}
\begin{axis}[
    xlabel={\pcode{a}s},
    ylabel={time in secs},
@@ -409,7 +409,6 @@
 slightly worse then the matcher in Ruby and Python.
 Ooops\ldots
 
-\pgfplotsset{compat=1.11}
 \begin{center}
 \begin{tikzpicture}
\begin{axis}[
    xlabel={\pcode{a}s},
    ylabel={time in secs},
     enlargelimits=false,
@@ -461,7 +460,6 @@
 is. This means we have to also add cases for $nullable$ and
 $der$. Does the change have any effect?
 
-\pgfplotsset{compat=1.11}
 \begin{center}
 \begin{tikzpicture}
\begin{axis}[
    xlabel={\pcode{a}s},
    ylabel={time in secs},
     enlargelimits=false,
@@ -469,7 +467,7 @@
     xmax=1000,
    ytick={0,5,...,30},
     scaled ticks=false,
     axis lines=left,
-    width=10cm,
+    width=9.5cm,
     height=5cm, 
     legend entries={Python,Ruby,Scala V1,Scala V2},  
     legend pos=outer north east,
@@ -537,7 +535,6 @@
 \pcode{ders}-function.\label{scala2}}
 \end{figure}
 
-\pgfplotsset{compat=1.11}
 \begin{center}
 \begin{tikzpicture}
\begin{axis}[
    xlabel={\pcode{a}s},
    ylabel={time in secs},
     enlargelimits=false,