# HG changeset patch # User amit@shrike.aero.iitb.ac.in # Date 1273511789 -19800 # Node ID 28915381ac32756ab565e04b096a2b49eadfee1d # Parent 502d4d151fa2e34bbeaa4fc2b936073cb48478a3 Changes from BHU workshop . changed variable names in list intro . pendulum.pychanged to pendulum_plot.py . Also an extra space added on slide 33 session1 day1 diff -r 502d4d151fa2 -r 28915381ac32 day1/session1.tex --- a/day1/session1.tex Sat May 01 16:30:45 2010 +0530 +++ b/day1/session1.tex Mon May 10 22:46:29 2010 +0530 @@ -555,7 +555,7 @@ \end{block} Line numbers can be specified individually separated by commas or as a range separated by a dash.\\ \begin{block}{} -\typ{\%save four_plot.py} \alert{\typ{16 18-27}} \\ +\typ{\%save four_plot.py} \alert{\typ{ 16 18-27}} \\ \end{block} This saves from the history the commands entered on line numbers \alert{16, 18, 19, 20, \ldots 27} \end{frame} diff -r 502d4d151fa2 -r 28915381ac32 day1/session2.tex --- a/day1/session2.tex Sat May 01 16:30:45 2010 +0530 +++ b/day1/session2.tex Mon May 10 22:46:29 2010 +0530 @@ -129,17 +129,17 @@ Do we plot analytical functions or experimental data? \begin{small} \begin{lstlisting} -In []: x = [0, 1, 2, 3] +In []: time = [0, 1, 2, 3] -In []: y = [7, 11, 15, 19] +In []: distance = [7, 11, 15, 19] -In []: plot(x, y) +In []: plot(time,distance) Out[]: [] -In []: xlabel('X') +In []: xlabel('time') Out[]: -In []: ylabel('Y') +In []: ylabel('distance') Out[]: \end{lstlisting} \end{small} @@ -160,11 +160,11 @@ \begin{lstlisting} In []: clf() - In []: plot(x, y, 'o') + In []: plot(time, distance, 'o') Out[]: [] In []: clf() - In []: plot(x, y, '.') + In []: plot(time, distance, '.') Out[]: [] \end{lstlisting} \end{frame} @@ -190,9 +190,9 @@ \begin{frame}[fragile] \frametitle{Lists: Introduction} \begin{lstlisting} - In []: x = [0, 1, 2, 3] + In []: time = [0, 1, 2, 3] - In []: y = [7, 11, 15, 19] + In []: distance = [7, 11, 15, 19] \end{lstlisting} What are \typ{x} and \typ{y}?\\ @@ -363,7 +363,7 @@ \begin{frame}[fragile] \frametitle{Plotting from \typ{pendulum.txt}} Open a new script\\ -Save as \typ{pendulum.py} after typing first line +Save as \typ{pendulum_plot.py} after typing first line \begin{lstlisting} L = [] t = []