summaryrefslogtreecommitdiff
path: root/day1/cheatsheet2.tex
diff options
context:
space:
mode:
authorSantosh G. Vattam2009-11-18 17:07:19 +0530
committerSantosh G. Vattam2009-11-18 17:07:19 +0530
commitd8d3b987ce35d2a60a4774f06ae83ec2f5e1ba90 (patch)
tree450d1e18ab6afd70b9db04aab4ebb402e3254085 /day1/cheatsheet2.tex
parentbf13c8137cdc1f37cb800a793b81ac1a037bf847 (diff)
downloadworkshops-d8d3b987ce35d2a60a4774f06ae83ec2f5e1ba90.tar.gz
workshops-d8d3b987ce35d2a60a4774f06ae83ec2f5e1ba90.tar.bz2
workshops-d8d3b987ce35d2a60a4774f06ae83ec2f5e1ba90.zip
Minor changes on cheatsheet of session 2 day 1.
Diffstat (limited to 'day1/cheatsheet2.tex')
-rwxr-xr-xday1/cheatsheet2.tex14
1 files changed, 1 insertions, 13 deletions
diff --git a/day1/cheatsheet2.tex b/day1/cheatsheet2.tex
index 9823aa3..06d806f 100755
--- a/day1/cheatsheet2.tex
+++ b/day1/cheatsheet2.tex
@@ -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}