summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPuneeth Chaganti2009-10-15 18:46:40 +0530
committerPuneeth Chaganti2009-10-15 18:46:40 +0530
commite21a7cd47b86912b51cc8df878a351f03e128dcc (patch)
treecf21afcd02314a57d01bbba927248ccb02e4dc44
parent764c1bd5d2c8f783f1fe46f2ffa8ea8f927dff6b (diff)
downloadworkshops-e21a7cd47b86912b51cc8df878a351f03e128dcc.tar.gz
workshops-e21a7cd47b86912b51cc8df878a351f03e128dcc.tar.bz2
workshops-e21a7cd47b86912b51cc8df878a351f03e128dcc.zip
Minor edits to day1 session1.
-rw-r--r--day1/session1.tex18
1 files changed, 13 insertions, 5 deletions
diff --git a/day1/session1.tex b/day1/session1.tex
index abbabdc..38267d1 100644
--- a/day1/session1.tex
+++ b/day1/session1.tex
@@ -190,11 +190,14 @@ In []: ylabel('-2sin(-y)')
\frametitle{Title and Legends}
\begin{lstlisting}
In []: title('Sinusoids')
+#Sets the title of the figure
+
+In []: legend()
# When plot made with label
# plot(y, -2*sin(-y), label='sin')
-In []: legend()
-# When no label, or to change
In []: legend(['sin'])
+# When no label, or to change
+
\end{lstlisting}
\end{frame}
@@ -257,7 +260,10 @@ In []: title('sin(x)'))
\frametitle{Showing it better}
\begin{lstlisting}
In []: plot(y, sin(y), 'g')
-In []: plot(y, sin(y), linewidth=2)
+# plots the curve using green color
+
+In []: plot(y, sin(y), linewidth=2)
+# sets the linewidth to 2
\end{lstlisting}
\end{frame}
@@ -266,17 +272,19 @@ In []: plot(y, sin(y), linewidth=2)
\begin{lstlisting}
In []: annotate('Sample point',
(50,200))
+# Adds the note 'Sample point' at
+# the point (50, 200)
\end{lstlisting}
\end{frame}
\begin{frame}[fragile]
\frametitle{Axes lengths}
\begin{lstlisting}
-#Get the limits
+#Get the axes limits
In []: xmin, xmax = xlim()
In []: ymin, ymax = ylim()
-#Set the limits
+#Set the axes limits
In []: xlim( xmin, xmax )
In []: ylim( ymin, ymax )
\end{lstlisting}