day1/session1.tex
changeset 246 d054581ef4b1
parent 225 a83f7be6f16c
child 247 786aa938a5c3
equal deleted inserted replaced
238:1575143284cd 246:d054581ef4b1
   157        \item Engg., Mathematics and Science teachers.
   157        \item Engg., Mathematics and Science teachers.
   158        \item Interested students from similar streams.
   158        \item Interested students from similar streams.
   159   \end{itemize}
   159   \end{itemize}
   160   \end{block}  
   160   \end{block}  
   161 
   161 
   162   \begin{block}{Goal}
   162   \begin{block}{Goal: Successful participants will be able to}
   163 	Successful participants will be able to 
   163     \begin{itemize}
   164         \begin{itemize}
   164       \item Use Python as plotting, computational toolkit
   165           \item use Python as their scripting and problem solving language. 
   165       \item Understand how Python can be used as scripting and problem solving language.
   166           \item train the students to use Python for the same
   166       \item Train the students to use Python for the same
   167         \end{itemize}
   167     \end{itemize}
   168   \end{block}
   168   \end{block}
   169 \end{frame}
   169 \end{frame}
   170 
   170 
   171 
   171 \section{Getting started}
   172 \begin{frame}
   172 \begin{frame}
   173 \frametitle{Bucketlist}  
   173 \frametitle{Checklist}
   174   \begin{block}{IPython}
   174   \begin{enumerate}
   175     Type ipython at the command line. Is it available?
   175     \item IPython: Type ipython at the command line. Is it available?
   176   \end{block}
   176     \item Editor: We recommend scite.
   177   \begin{block}{Editor}
   177     \item Data files: Make sure you have all data files.
   178     We recommend scite.
   178   \end{enumerate}
   179   \end{block}
       
   180   \begin{block}{Data files}
       
   181     Make sure you have all data files.
       
   182   \end{block}
       
   183 \end{frame}
   179 \end{frame}
   184 
   180 
   185 \begin{frame}[fragile]
   181 \begin{frame}[fragile]
   186 \frametitle{Starting up...}
   182 \frametitle{Starting up...}
   187 \begin{block}{}
   183 \begin{block}{}
   213   KeyboardInterrupt                   
   209   KeyboardInterrupt                   
   214 
   210 
   215 \end{lstlisting}
   211 \end{lstlisting}
   216 \end{frame}
   212 \end{frame}
   217 
   213 
       
   214 \section{Plotting}
       
   215 
       
   216 \subsection{Drawing plots}
   218 \begin{frame}[fragile]
   217 \begin{frame}[fragile]
   219 \frametitle{First Plot}
   218 \frametitle{First Plot}
   220 \begin{columns}
   219 \begin{columns}
   221     \column{0.25\textwidth}
   220     \column{0.25\textwidth}
   222     \hspace*{-0.5in}
   221     \hspace*{-0.5in}
   247 \begin{block}{\typ{plot(x, y)}}
   246 \begin{block}{\typ{plot(x, y)}}
   248 plots \typ{x} and \typ{y} using default line style and color
   247 plots \typ{x} and \typ{y} using default line style and color
   249 \end{block}
   248 \end{block}
   250 \end{frame}
   249 \end{frame}
   251 
   250 
       
   251 \subsection{Decoration}
   252 \begin{frame}[fragile]
   252 \begin{frame}[fragile]
   253 \frametitle{Adding Labels}
   253 \frametitle{Adding Labels}
   254 \begin{columns}
   254 \begin{columns}
   255   \column{0.25\textwidth}
   255   \column{0.25\textwidth}
   256   \hspace*{-0.45in}
   256   \hspace*{-0.45in}
   285 In []: ylabel('sin(2y)')
   285 In []: ylabel('sin(2y)')
   286   \end{lstlisting}
   286   \end{lstlisting}
   287 \emphbar{By default plots would be overlaid!}
   287 \emphbar{By default plots would be overlaid!}
   288 \end{frame}
   288 \end{frame}
   289 
   289 
       
   290 \subsection{More decoration}
   290 \begin{frame}[fragile]
   291 \begin{frame}[fragile]
   291 \frametitle{Title and Legends}
   292 \frametitle{Title and Legends}
   292 \vspace*{-0.15in}
   293 \vspace*{-0.15in}
   293 %  \begin{block}{}
   294 %  \begin{block}{}
   294 %  \small
   295 %  \small
   356 
   357 
   357 In []: close()
   358 In []: close()
   358 \end{lstlisting}
   359 \end{lstlisting}
   359 \end{frame}
   360 \end{frame}
   360 
   361 
       
   362 \section{Multiple plots}
   361 \begin{frame}[fragile]
   363 \begin{frame}[fragile]
   362 \frametitle{Plotting separate figures}
   364 \frametitle{Plotting separate figures}
   363 \begin{lstlisting}
   365 \begin{lstlisting}
   364 In []: figure(1)
   366 In []: figure(1)
   365 In []: plot(y, sin(y))
   367 In []: plot(y, sin(y))
   431 In []: plot(x, -x, 'b')
   433 In []: plot(x, -x, 'b')
   432 \end{lstlisting}
   434 \end{lstlisting}
   433 $\vdots$
   435 $\vdots$
   434 \end{frame}
   436 \end{frame}
   435 
   437 
       
   438 \section{Exercises}
   436 \begin{frame}[fragile]
   439 \begin{frame}[fragile]
   437 \frametitle{Review Problem \ldots}
   440 \frametitle{Review Problem \ldots}
   438 \small{
   441 \small{
   439 \begin{lstlisting}
   442 \begin{lstlisting}
   440 In []: plot(x, sin(x), 'g', linewidth=2)
   443 In []: plot(x, sin(x), 'g', linewidth=2)
   452 In []: ylim(5*pi, 5*pi)
   455 In []: ylim(5*pi, 5*pi)
   453 \end{lstlisting}
   456 \end{lstlisting}
   454 }
   457 }
   455 \end{frame}
   458 \end{frame}
   456 \begin{frame}
   459 \begin{frame}
   457   \frametitle{Things we have learned}
   460   \frametitle{What did we learn?}
   458   \begin{itemize}
   461   \begin{itemize}
   459   \item Creating simple plots.
   462     \item Creating simple plots.
   460   \item Adding labels and legends.
   463     \item Adding labels and legends.
   461   \item Annotating plots.
   464     \item Annotating plots.
   462   \item Changing the looks: size, linewidth
   465     \item Changing the looks: size, linewidth
   463   \end{itemize}
   466   \end{itemize}
   464 \end{frame}
   467   \begin{block}{Note}
   465 \begin{frame}[fragile]
   468     \centerline{\alert{Don't Close \typ{IPython}}}
   466   \begin{center}
   469   \end{block}
   467   End of Session-1\\
       
   468   \alert{Don't Close \typ{IPython}}
       
   469   \end{center}
       
   470 \end{frame}
   470 \end{frame}
   471 
   471 
   472 \end{document}
   472 \end{document}
   473 
   473