day1/session1.tex
branchscipy2010
changeset 427 66d296ff31b9
parent 426 7d8738ce004d
child 439 d85c3ed8545c
equal deleted inserted replaced
426:7d8738ce004d 427:66d296ff31b9
   257 %%   $ ipython -pylab  
   257 %%   $ ipython -pylab  
   258 %% \end{lstlisting} %$
   258 %% \end{lstlisting} %$
   259 %% \end{block}
   259 %% \end{block}
   260 %% \end{frame}
   260 %% \end{frame}
   261 
   261 
   262 \section{Loops}
   262 \section{Breaking out of loops}
   263 \begin{frame}[fragile]
   263 \begin{frame}[fragile]
   264 \frametitle{Loops}
   264 \frametitle{Breaking out of Loops}
   265 Breaking out of loops
   265 Breaking out of loops
   266 \begin{lstlisting}     
   266 \begin{lstlisting}     
   267   In []: while True:
   267   In []: while True:
   268     ...:     print "Hello, World!"
   268     ...:     print "Hello, World!"
   269     ...:     
   269     ...:     
   513 \frametitle{Axes lengths}
   513 \frametitle{Axes lengths}
   514 \emphbar{Getting axes lengths}
   514 \emphbar{Getting axes lengths}
   515   \begin{lstlisting}
   515   \begin{lstlisting}
   516 In []: xmin, xmax = xlim() 
   516 In []: xmin, xmax = xlim() 
   517 In []: ymin, ymax = ylim() 
   517 In []: ymin, ymax = ylim() 
       
   518 In []: print xmin, xmax 
   518   \end{lstlisting}
   519   \end{lstlisting}
   519 \emphbar{Set the axes limits}
   520 \emphbar{Set the axes limits}
   520   \begin{lstlisting}
   521   \begin{lstlisting}
   521 In []: xlim(xmin, 2*pi )
   522 In []: xlim(xmin, 2*pi )
   522 In []: ylim(ymin-0.2, ymax+0.2)
   523 In []: ylim(ymin-0.2, ymax+0.2)