day2/session3.tex
changeset 385 c70118cdde66
parent 384 9f9fddf7e37c
child 389 aa392117454f
equal deleted inserted replaced
384:9f9fddf7e37c 385:c70118cdde66
    76 \title[Basic Python]{Python language: Functions, modules and objects}
    76 \title[Basic Python]{Python language: Functions, modules and objects}
    77 
    77 
    78 \author[FOSSEE Team] {The FOSSEE Group}
    78 \author[FOSSEE Team] {The FOSSEE Group}
    79 
    79 
    80 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
    80 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
    81 \date[] {03 April, 2010\\Day 2, Session 3}
    81 \date[] {23 April, 2010\\Day 2, Session 3}
    82 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    82 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    83 
    83 
    84 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
    84 %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
    85 %\logo{\pgfuseimage{iitmlogo}}
    85 %\logo{\pgfuseimage{iitmlogo}}
    86 
    86 
   158 \subsection{Keyword arguments}
   158 \subsection{Keyword arguments}
   159 \begin{frame}[fragile]
   159 \begin{frame}[fragile]
   160   \frametitle{Functions: Keyword arguments}
   160   \frametitle{Functions: Keyword arguments}
   161 We have seen the following
   161 We have seen the following
   162 \begin{lstlisting}
   162 \begin{lstlisting}
   163 In []: legend(['sin(2y)'], 
   163 legend(['sin(2y)'], loc = 'center')
   164                  loc = 'center')
   164 
   165 
   165 plot(y, sin(y), 'g', linewidth = 2)
   166 In []: plot(y, sin(y), 'g',
   166 
   167                  linewidth = 2)
   167 annotate('local max', xy = (1.5, 1))
   168 
   168 
   169 In []: annotate('local max',
   169 pie(science.values(), 
   170                  xy = (1.5, 1))
       
   171 
       
   172 In []: pie(science.values(),
       
   173             labels = science.keys())
   170             labels = science.keys())
   174   \end{lstlisting}
   171   \end{lstlisting}
   175 \end{frame}
   172 \end{frame}
   176 
   173 
   177 \begin{frame}[fragile]
   174 \begin{frame}[fragile]