diff options
author | Santosh G. Vattam | 2009-10-23 17:12:25 +0530 |
---|---|---|
committer | Santosh G. Vattam | 2009-10-23 17:12:25 +0530 |
commit | 2773760a93e8d8ae88481c78a4e1d83df446b1a0 (patch) | |
tree | 3c21f430df63c3c0db9c3ec39fb93e4bbb7e4de2 /day1 | |
parent | 4a8dd4a3892c1146aa69c047d8bfd3fdf4f08300 (diff) | |
parent | a736b3027f528277d0d136c1f928b0dbd651b0e6 (diff) | |
download | workshops-2773760a93e8d8ae88481c78a4e1d83df446b1a0.tar.gz workshops-2773760a93e8d8ae88481c78a4e1d83df446b1a0.tar.bz2 workshops-2773760a93e8d8ae88481c78a4e1d83df446b1a0.zip |
Manual merge of conflicting branches.
Diffstat (limited to 'day1')
-rw-r--r-- | day1/session2.tex | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/day1/session2.tex b/day1/session2.tex index c0dbcf1..b9654c1 100644 --- a/day1/session2.tex +++ b/day1/session2.tex @@ -193,16 +193,26 @@ In []: T = [0.6529, 0.8485, 1.0590, \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 @@ Out[]: [<matplotlib.lines.Line2D object at 0xa5b05ac>] \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 @@ Out[]: ['KD', 'MCS', 'PC', 'SC', 'SV'] \inctime{5} \end{frame} -\section{Plotting points} - - \end{document} |