day2/session3.tex
branchscipy2010
changeset 431 9126059d6b37
parent 429 58a2d1766197
child 451 db7b23465572
equal deleted inserted replaced
430:f97ecb4e04a9 431:9126059d6b37
   397 
   397 
   398     \item[\texttt{Mayavi}] Easy, interactive, 3D plotting
   398     \item[\texttt{Mayavi}] Easy, interactive, 3D plotting
   399   \end{description}
   399   \end{description}
   400 \end{frame}
   400 \end{frame}
   401 
   401 
       
   402 \begin{frame}[fragile]
       
   403   \frametitle{From which module?}
       
   404   
       
   405 This plot function in pylab is cool, 
       
   406 from where do I import it to include it in 
       
   407 my\_nifty\_module.py?
       
   408   
       
   409 \end{frame}
       
   410 
       
   411 \begin{frame}[fragile]
       
   412   \frametitle{From which module?}
       
   413   \begin{lstlisting}
       
   414    
       
   415 In [15]: plot.__module__
       
   416 Out[15]: 'matplotlib.pyplot'
       
   417 
       
   418 from matplotlib.pyplot import plot
       
   419 
       
   420   \end{lstlisting}
       
   421 \end{frame}
       
   422 
   402 \section{Objects}
   423 \section{Objects}
   403 \begin{frame}{Everything is an Object!}
   424 \begin{frame}{Everything is an Object!}
   404   \begin{itemize}
   425   \begin{itemize}
   405     \item \typ{int}
   426     \item \typ{int}
   406     \item \typ{float}
   427     \item \typ{float}