day1/session1.tex
changeset 280 9bed85f05eb8
parent 279 e7ce6f9d7e15
child 286 ac457f7d1702
equal deleted inserted replaced
279:e7ce6f9d7e15 280:9bed85f05eb8
   471 In []: xlim(-5*pi, 5*pi)
   471 In []: xlim(-5*pi, 5*pi)
   472 In []: ylim(-5*pi, 5*pi)
   472 In []: ylim(-5*pi, 5*pi)
   473 \end{lstlisting}
   473 \end{lstlisting}
   474 \end{frame}
   474 \end{frame}
   475 
   475 
       
   476 \begin{frame}[fragile]
       
   477 \frametitle{Saving Commands}
       
   478 Save commands of review problem into file
       
   479 \begin{itemize}
       
   480 \item Use \typ{\%hist} command of IPython 
       
   481 \item Identify the required line numbers
       
   482 \item Then, use \typ{\%save} command of IPython
       
   483 \end{itemize}
       
   484 \begin{lstlisting}
       
   485   In []: %hist
       
   486   In []: %save four_plot.py 16 18-27
       
   487 \end{lstlisting}
       
   488 \end{frame}
       
   489 
   476 \begin{frame}
   490 \begin{frame}
   477   \frametitle{What did we learn?}
   491   \frametitle{What did we learn?}
   478   \begin{itemize}
   492   \begin{itemize}
   479     \item Creating simple plots.
   493     \item Creating simple plots.
   480     \item Adding labels and legends.
   494     \item Adding labels and legends.
   481     \item Annotating plots.
   495     \item Annotating plots.
   482     \item Changing the looks: size, linewidth
   496     \item Changing the looks: size, linewidth
   483   \end{itemize}
   497   \end{itemize}
   484   \begin{block}{Note}
       
   485     \centerline{\alert{Don't Close \typ{IPython}}}
       
   486   \end{block}
       
   487 %%\inctime{10}
       
   488 \end{frame}
   498 \end{frame}
   489 
   499 
   490 \end{document}
   500 \end{document}
   491 
   501