diff options
Diffstat (limited to 'day1/session2.tex')
-rw-r--r-- | day1/session2.tex | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/day1/session2.tex b/day1/session2.tex index c387cfd..f7b974f 100644 --- a/day1/session2.tex +++ b/day1/session2.tex @@ -207,6 +207,13 @@ Out[]: [<matplotlib.lines.Line2D object at 0xa73aa8c>] \end{frame} \begin{frame}[fragile] +\begin{figure} +\includegraphics[width=2in]{data/stline_dots.png} +\includegraphics[width=2in]{data/stline_points.png} +\end{figure} +\end{frame} + +\begin{frame}[fragile] \frametitle{Additional Plotting Attributes} \begin{itemize} \item \kwrd{'o'} - Dots @@ -328,6 +335,12 @@ This gives the list \kwrd{TSq} which is the list of squares of T values. \end{frame} \begin{frame}[fragile] +\begin{figure} +\includegraphics[width=3.5in]{data/L-TSq-limited.png} +\end{figure} +\end{frame} + +\begin{frame}[fragile] \frametitle{More of \texttt{for}} \begin{itemize} \item Used to iterate over lists @@ -348,11 +361,11 @@ In []: for num in lst: \end{frame} \begin{frame}[fragile] -\frametitle{Whats unusual about the previous example??} +\frametitle{What about larger data sets??} \alert{Data is usually present in a file!} \\ Lets look at the pendulum.txt file. \begin{lstlisting} -cat data/pendulum.txt +$cat data/pendulum.txt 1.0000e-01 6.9004e-01 1.1000e-01 6.9497e-01 1.2000e-01 7.4252e-01 @@ -403,6 +416,12 @@ In []: plot(L, TSq, '.') \end{frame} \begin{frame}[fragile] +\begin{figure} +\includegraphics[width=3.5in]{data/L-Tsq.png} +\end{figure} +\end{frame} + +\begin{frame}[fragile] \frametitle{Reading files \ldots} \typ{In []: for line in open('pendulum.txt'):} \begin{itemize} @@ -456,14 +475,6 @@ Out[]: <type 'float'> \end{lstlisting} \end{frame} -\begin{frame}[fragile] -\begin{figure} -\includegraphics[width=3.5in]{data/L-Tsq.png} -\end{figure} -\vspace{-0.2in} -Coming up - \alert{Least Square Fit \ldots} -\end{frame} - \section {Summary} \begin{frame} \frametitle{Summary} |