day1/session2.tex
changeset 162 1af425d33eba
parent 161 ff22fae4fde5
child 163 f7aeeedb9aa3
--- a/day1/session2.tex	Fri Oct 23 18:23:32 2009 +0530
+++ b/day1/session2.tex	Fri Oct 23 19:13:37 2009 +0530
@@ -153,6 +153,7 @@
 \frametitle{Simple Pendulum - L and T}
   \begin{itemize}
     \item Given data of Length and Time-period of a Simple pendulum 
+    \item $T^2 = \frac{4\pi^2}{g}L$\\ \alert{{$L$} and {$T^2$} vary linearly}
     \item We wish to plot L vs. \alert{$T^2$}
   \end{itemize}    
 \begin{lstlisting}
@@ -166,43 +167,6 @@
 \end{frame}
 
 \begin{frame}[fragile]
-\frametitle{Simple Pendulum \ldots}
-\begin{itemize}
-\item Let us begin with $L$ vs. \alert{$T$}
-\end{itemize}
-\begin{lstlisting}
-  In []: plot(L, T)
-\end{lstlisting}
-\begin{itemize}
-\item But we wish to plot points!
-\end{itemize}
-\end{frame}
-
-\begin{frame}[fragile]
-\frametitle{Plotting points}
-\begin{lstlisting}
-  In []: clf()
-
-  In []: plot(L, T, 'o')
-  Out[]: [<matplotlib.lines.Line2D object at 0xac17e0c>]
-
-  In []: clf()
-  In []: plot(L, T, '.')
-  Out[]: [<matplotlib.lines.Line2D object at 0xac17e0c>]
-\end{lstlisting}
-\end{frame}
-
-\begin{frame}[fragile]
-\frametitle{Additional Plotting Attributes}
-\begin{itemize}
-  \item \kwrd{'o'} - Dots
-  \item \kwrd{'.'} - Smaller Dots
-  \item \kwrd{'-'} - Lines
-  \item \kwrd{'- -'} - Dashed lines
-\end{itemize}
-\end{frame}
-
-\begin{frame}[fragile]
 \frametitle{Plotting $L$ vs. $T^2$}
 \begin{itemize}
 \item We must square each of the values in T
@@ -219,11 +183,38 @@
 In []: for t in T:
  ....:     TSq.append(t*t)
 
-In []: plot(L, TSq, '.')
+In []: plot(L, TSq)
 Out[]: [<matplotlib.lines.Line2D object at 0xa5b05ac>]
 \end{lstlisting}
 \end{frame}
 
+\begin{frame}[fragile]
+\frametitle{Plotting points}
+\begin{itemize}
+\item But we want to plot points!
+\end{itemize}
+\begin{lstlisting}
+  In []: clf()
+
+  In []: plot(L, TSq, 'o')
+  Out[]: [<matplotlib.lines.Line2D object at 0xac17e0c>]
+
+  In []: clf()
+  In []: plot(L, TSq, '.')
+  Out[]: [<matplotlib.lines.Line2D object at 0xac17e0c>]
+\end{lstlisting}
+\end{frame}
+
+\begin{frame}[fragile]
+\frametitle{Additional Plotting Attributes}
+\begin{itemize}
+  \item \kwrd{'o'} - Dots
+  \item \kwrd{'.'} - Smaller Dots
+  \item \kwrd{'-'} - Lines
+  \item \kwrd{'- -'} - Dashed lines
+\end{itemize}
+\end{frame}
+
 \begin{frame}{New Concepts}
   \begin{itemize}
     \item lists
@@ -385,17 +376,10 @@
 
 \begin{frame}[fragile]
 \begin{figure}
-\includegraphics[width=3.5in]{data/L-Tsq.png}
+%\includegraphics[width=3.5in]{data/L-Tsq.png}
 \end{figure}
 \vspace{-0.2in}
 Coming up - \alert{Least Square Fit \ldots}
 \end{frame}
 
-
-
-
 \end{document}
-
-
-
-