equal
deleted
inserted
replaced
360 \end{itemize} |
360 \end{itemize} |
361 \end{frame} |
361 \end{frame} |
362 |
362 |
363 \begin{frame}[fragile] |
363 \begin{frame}[fragile] |
364 \frametitle{Plotting from \typ{pendulum.txt}} |
364 \frametitle{Plotting from \typ{pendulum.txt}} |
365 Open a new script and type the following: |
365 Open a new script\\ |
|
366 Save as \typ{pendulum.py} after typing first line |
366 \begin{lstlisting} |
367 \begin{lstlisting} |
367 L = [] |
368 L = [] |
368 t = [] |
369 t = [] |
369 for line in open('pendulum.txt'): |
370 for line in open('pendulum.txt'): |
370 point = line.split() |
371 point = line.split() |