equal
deleted
inserted
replaced
351 \end{itemize} |
351 \end{itemize} |
352 \end{frame} |
352 \end{frame} |
353 |
353 |
354 \begin{frame}[fragile] |
354 \begin{frame}[fragile] |
355 \frametitle{Plotting from \typ{pendulum.txt}} |
355 \frametitle{Plotting from \typ{pendulum.txt}} |
356 Open a new script and type the following: |
356 Type the following in an editor. Save as \typ{pend\_pl.py} |
357 \begin{lstlisting} |
357 \begin{lstlisting} |
358 l = [] |
358 l = [] |
359 t = [] |
359 t = [] |
360 for line in open('pendulum.txt'): |
360 for line in open('pendulum.txt'): |
361 point = line.split() |
361 point = line.split() |
370 \end{frame} |
370 \end{frame} |
371 |
371 |
372 \begin{frame} |
372 \begin{frame} |
373 \frametitle{Save and run} |
373 \frametitle{Save and run} |
374 \begin{itemize} |
374 \begin{itemize} |
375 \item Save as pendulum\_plot.py. |
375 \item Save as \typ{pend\_pl.py} |
376 \item Run using \kwrd{\%run -i pendulum\_plot.py} |
376 \item Run using \kwrd{\%run -i pend\_pl.py} |
377 \end{itemize} |
377 \end{itemize} |
378 \end{frame} |
378 \end{frame} |
379 |
379 |
380 \begin{frame}[fragile] |
380 \begin{frame}[fragile] |
381 \begin{figure} |
381 \begin{figure} |