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}{} |
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} |
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 |