day1/session2.tex
changeset 156 6a1388c456f4
parent 153 dc0da25b788b
child 159 01f57cda252f
equal deleted inserted replaced
153:dc0da25b788b 156:6a1388c456f4
   191   Out[]: [<matplotlib.lines.Line2D object at 0xac17e0c>]
   191   Out[]: [<matplotlib.lines.Line2D object at 0xac17e0c>]
   192 \end{lstlisting}
   192 \end{lstlisting}
   193 \end{frame}
   193 \end{frame}
   194 
   194 
   195 \begin{frame}[fragile]
   195 \begin{frame}[fragile]
   196 \frametitle{Plotting Attributes}
   196 \frametitle{Additional Plotting Attributes}
   197 \begin{itemize}
   197 \begin{itemize}
   198   \item \kwrd{'o'} - Dots
   198   \item \kwrd{'o'} - Dots
       
   199   \item \kwrd{'.'} - Smaller Dots
   199   \item \kwrd{'-'} - Lines
   200   \item \kwrd{'-'} - Lines
   200   \item \kwrd{'- -'} - Dashed lines
   201   \item \kwrd{'- -'} - Dashed lines
   201 \end{itemize}
   202 \end{itemize}
   202 \end{frame}
   203 \end{frame}
   203 
   204 
       
   205 \begin{frame}[fragile]
       
   206 \frametitle{Plotting $L$ vs. $T^2$}
       
   207 \begin{itemize}
       
   208 \item We must square each of the values in T
       
   209 \item How to do it?
       
   210 \item T is a \kwrd{list} and we use a \kwrd{for} loop to iterate over it
       
   211 \end{itemize}
       
   212 \end{frame}
   204 
   213 
   205 
   214 
   206 \section{File Handling}
   215 \section{File Handling}
   207 \begin{frame}[fragile]
   216 \begin{frame}[fragile]
   208     \frametitle{File and \kwrd{for}}
   217     \frametitle{File and \kwrd{for}}
   236 Out[]: ['KD', 'MCS', 'PC', 'SC', 'SV']
   245 Out[]: ['KD', 'MCS', 'PC', 'SC', 'SV']
   237   \end{lstlisting}
   246   \end{lstlisting}
   238 \inctime{5}
   247 \inctime{5}
   239 \end{frame}
   248 \end{frame}
   240 
   249 
   241 \section{Plotting points}
       
   242 
       
   243 \section{Lists}
   250 \section{Lists}
   244 
   251 
   245 \begin{frame}[fragile]
   252 \begin{frame}[fragile]
   246   \frametitle{List creation and indexing}
   253   \frametitle{List creation and indexing}
   247 \begin{lstlisting}
   254 \begin{lstlisting}