# HG changeset patch # User Santosh G. Vattam # Date 1256298145 -19800 # Node ID 01f57cda252f9745b61cfa1890a14ee5960df528 # Parent 978108b0c02cc7493aabf7143d014acf41951d2b# Parent 55e8fc68835c2d400cd6864e1de17279b70c2c02 Manual merge of conflicting branches. diff -r 978108b0c02c -r 01f57cda252f day1/session2.tex --- a/day1/session2.tex Fri Oct 23 16:59:50 2009 +0530 +++ b/day1/session2.tex Fri Oct 23 17:12:25 2009 +0530 @@ -193,16 +193,26 @@ \end{frame} \begin{frame}[fragile] -\frametitle{Plotting Attributes} +\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 \it{L} vs \it{T^2}} +\frametitle{Plotting $L$ vs. $T^2$} +\begin{itemize} +\item We must square each of the values in T +\item How to do it? +\item T is a \kwrd{list} and we use a \kwrd{for} loop to iterate over it +\end{itemize} +\end{frame} + +\begin{frame}[fragile] +\frametitle{Plotting $L$ vs $T^2$} \begin{lstlisting} In []: TSq = [] @@ -225,6 +235,8 @@ \begin{frame}[fragile] \frametitle{How to create and use lists?} \begin{lstlisting} +In []: mtlist = [] #Empty List + In []: lst = [1,2,3,4] In []: lst[0]+lst[1]+lst[-1] @@ -306,7 +318,4 @@ \inctime{5} \end{frame} -\section{Plotting points} - - \end{document}