day1/session2.tex
changeset 293 f7d7b5565232
parent 290 10528e3073ef
child 300 f87f2a310abe
equal deleted inserted replaced
292:2622aebff64a 293:f7d7b5565232
   121   \frametitle{Outline}
   121   \frametitle{Outline}
   122   \tableofcontents
   122   \tableofcontents
   123   % You might wish to add the option [pausesections]
   123   % You might wish to add the option [pausesections]
   124 \end{frame}
   124 \end{frame}
   125 
   125 
   126 %\begin{frame}
   126 \section{Plotting Points}
   127 %\frametitle{Python Scripts\ldots}
       
   128 %  \begin{itemize}
       
   129 %    \item Open a new file in an \alert{editor}
       
   130 %    \item Copy and paste from the output of \typ{\%hist -n}
       
   131 %    \item Save the file as \typ{sine_plot.py}
       
   132 %  \end{itemize}
       
   133 %  \begin{itemize}
       
   134 %  \item run the file in IPython using \typ{\%run -i sine_plot.py}\\
       
   135 %  \end{itemize}
       
   136 %\end{frame}
       
   137 
       
   138 \section{Scripts}
       
   139 
       
   140 \begin{frame}[fragile]
       
   141 \frametitle{Python Scripts}
       
   142   \begin{itemize}
       
   143   \item four\_plot.py is called a Python Script
       
   144   \item run the file in IPython using \typ{\%run -i four_plot.py}
       
   145   \end{itemize}
       
   146 \end{frame}
       
   147 
       
   148 \begin{frame}[fragile]
   127 \begin{frame}[fragile]
   149 \frametitle{Why would I plot f(x)?}
   128 \frametitle{Why would I plot f(x)?}
   150 How often do we plot analytical functions?\\We plot experimental data more.
   129 How often do we plot analytical functions?\\We plot experimental data more.
   151 \begin{small}
   130 \begin{small}
   152 \begin{lstlisting}
   131 \begin{lstlisting}
   481 
   460 
   482 \section {Summary}
   461 \section {Summary}
   483 \begin{frame}[fragile]
   462 \begin{frame}[fragile]
   484 \frametitle{What did we learn?}
   463 \frametitle{What did we learn?}
   485 \begin{itemize}
   464 \begin{itemize}
   486   \item Python scripts
       
   487   \item \kwrd{\%run -i}
       
   488   \item Plotting points
   465   \item Plotting points
   489   \item Plot attributes
   466   \item Plot attributes
   490   \item Lists
   467   \item Lists
   491   \item \kwrd{for}
   468   \item \kwrd{for}
   492   \item Reading files
   469   \item Reading files