summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--day1/data/L-TSq-limited.pngbin0 -> 21384 bytes
-rw-r--r--day1/data/stline_dots.pngbin0 -> 10599 bytes
-rw-r--r--day1/data/stline_points.pngbin0 -> 10164 bytes
-rw-r--r--day1/data/straightline.pngbin0 -> 14818 bytes
-rw-r--r--day1/session2.tex31
5 files changed, 21 insertions, 10 deletions
diff --git a/day1/data/L-TSq-limited.png b/day1/data/L-TSq-limited.png
new file mode 100644
index 0000000..c6e280e
--- /dev/null
+++ b/day1/data/L-TSq-limited.png
Binary files differ
diff --git a/day1/data/stline_dots.png b/day1/data/stline_dots.png
new file mode 100644
index 0000000..ff6ec70
--- /dev/null
+++ b/day1/data/stline_dots.png
Binary files differ
diff --git a/day1/data/stline_points.png b/day1/data/stline_points.png
new file mode 100644
index 0000000..9e3f198
--- /dev/null
+++ b/day1/data/stline_points.png
Binary files differ
diff --git a/day1/data/straightline.png b/day1/data/straightline.png
new file mode 100644
index 0000000..b963f55
--- /dev/null
+++ b/day1/data/straightline.png
Binary files differ
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}