# HG changeset patch # User Santosh G. Vattam # Date 1258544239 -19800 # Node ID 0b1f2c378d846a11017aa00d9964723f776420d5 # Parent 57291186d598523f2c995bdbdd9a505d4ac80503 Minor changes on cheatsheet of session 2 day 1. diff -r 57291186d598 -r 0b1f2c378d84 day1/cheatsheet2.tex --- a/day1/cheatsheet2.tex Wed Nov 11 17:08:32 2009 +0530 +++ b/day1/cheatsheet2.tex Wed Nov 18 17:07:19 2009 +0530 @@ -25,19 +25,7 @@ \LARGE{Plotting Points}\\ \large{FOSSEE} \end{center} -\section{Plotting from Data files} -\begin{verbatim} -l = [] #Empty List -t = [] -for line in open('pendulum.txt'): # Opening & Reading files - points = line.split() # Splitting a string - l.append(float(points[0])) # Appending to a list - t.append(float(points[1])) -tsq = [] -for time in t: #Iterating through lists - tsq.append(t*t) -plot(l, tsq, '.') # Plotting points -\end{verbatim} + \section{Plotting Points with Lists} \begin{lstlisting}