summaryrefslogtreecommitdiff
path: root/day1/session1.tex
diff options
context:
space:
mode:
authorAsokan Pichai2009-10-27 11:58:55 +0530
committerAsokan Pichai2009-10-27 11:58:55 +0530
commitb192ab15c209ddf304cb14b220d14c1802095b12 (patch)
treee7c1045cad61486b983c817db13c1330c8759b7f /day1/session1.tex
parent79874f13dfffa73ab88dc0efe6cb0b5fc51871b6 (diff)
downloadworkshops-b192ab15c209ddf304cb14b220d14c1802095b12.tar.gz
workshops-b192ab15c209ddf304cb14b220d14c1802095b12.tar.bz2
workshops-b192ab15c209ddf304cb14b220d14c1802095b12.zip
Made English and low level id changes to session1.tex
Diffstat (limited to 'day1/session1.tex')
-rw-r--r--day1/session1.tex44
1 files changed, 23 insertions, 21 deletions
diff --git a/day1/session1.tex b/day1/session1.tex
index 8eb1226..0e576ad 100644
--- a/day1/session1.tex
+++ b/day1/session1.tex
@@ -72,7 +72,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Title page
-\title[]{Interactive Plotting}
+\title[Interactive Plotting]{Python for Science and Engg: Interactive Plotting}
\author[FOSSEE] {FOSSEE}
@@ -177,10 +177,14 @@ In []: plot(x, sin(x))
\begin{frame}[fragile]
\frametitle{Walkthrough}
-\begin{block}{\typ{linspace(start, stop, num)} }
+\begin{block}{\typ{x = linspace(start, stop, num)} }
returns \typ{num} evenly spaced points, in the interval [\typ{start}, \typ{stop}].
\end{block}
-\vspace*{.5in}
+\begin{lstlisting}
+x[0] = start
+x[num - 1] = end
+\end{lstlisting}
+\vspace*{.35in}
\begin{block}{\typ{plot(x, y)}}
plots \typ{x} and \typ{y} using default line style and color
\end{block}
@@ -221,7 +225,7 @@ In []: plot(y, sin(2*y))
In []: xlabel('y')
In []: ylabel('sin(2y)')
\end{lstlisting}
-\emphbar{By default plots would be overlayed!}
+\emphbar{By default plots would be overlaid!}
\end{frame}
\begin{frame}[fragile]
@@ -243,45 +247,42 @@ In []: legend(['sin(2y)'])
\end{frame}
\begin{frame}[fragile]
-\frametitle{Changing Legend Placement}
-\begin{columns}
- \column{0.6\textwidth}
+\frametitle{Legend Placement}
+
\begin{block}{}
\small
\begin{lstlisting}
-In []: legend(['sin(2y)'],
- loc='center')
+In []: legend(['sin(2y)'], loc='center')
\end{lstlisting}
- \small
\end{block}
+
+\begin{columns}
+ \column{0.6\textwidth}
\includegraphics[height=2in, interpolate=true]{data/position}
+\begin{lstlisting}
+'best', 'right', 'center'
+\end{lstlisting}
\column{0.45\textwidth}
\vspace{-0.2in}
\begin{lstlisting}
-Location String
-===============
-'best'
'upper right'
'upper left'
'lower left'
'lower right'
-'right'
'center left'
'center right'
'lower center'
'upper center'
-'center'
\end{lstlisting}
\end{columns}
\end{frame}
\begin{frame}[fragile]
-\frametitle{For placing legend at $(x,y)$}
+ \frametitle{For arbitrary location}
\vspace*{-0.1in}
\begin{lstlisting}
In []: legend(['sin(2y)'], loc=(.8,.1))
-#(x,y) is position of lower-left
-#corner of legend box.
+# Specify south-east corner position
\end{lstlisting}
%\vspace*{-0.2in}
\begin{center}
@@ -396,9 +397,10 @@ In []: ylim(5*pi, 5*pi)
\begin{frame}
\frametitle{Things we have learned}
\begin{itemize}
- \item Creating plots.
- \item Handling labels and legends.
- \item Changing properties of plot.
+ \item Creating simple plots.
+ \item Adding labels and legends.
+ \item Annotating plots.
+ \item Changing the looks: size, linewidth
\end{itemize}
\end{frame}
\begin{frame}[fragile]