day1/session2.tex
changeset 334 2214b5dba4d4
parent 330 46533051b9d3
child 339 8ac5fe07810f
equal deleted inserted replaced
333:25b18b51be41 334:2214b5dba4d4
    76 \title[Plotting with Python]{Python for Science and Engg: Plotting experimental data}
    76 \title[Plotting with Python]{Python for Science and Engg: Plotting experimental data}
    77 
    77 
    78 \author[FOSSEE] {FOSSEE}
    78 \author[FOSSEE] {FOSSEE}
    79 
    79 
    80 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
    80 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
    81 \date[] {7 November, 2009\\Day 1, Session 2}
    81 \date[] {14 December, 2009\\Day 1, Session 2}
    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 
   329 
   329 
   330 \begin{frame}[fragile]
   330 \begin{frame}[fragile]
   331 \frametitle{What about larger data sets?}
   331 \frametitle{What about larger data sets?}
   332 \alert{Data is usually present in a file!} \\
   332 \alert{Data is usually present in a file!} \\
   333 Lets look at the \typ{pendulum.txt} file.
   333 Lets look at the \typ{pendulum.txt} file.
   334 \begin{lstlisting}
   334 \begin{lstlisting} 
   335 $ cat pendulum.txt 
   335 $ cat pendulum.txt 
   336 1.0000e-01 6.9004e-01
   336 1.0000e-01 6.9004e-01
   337 1.1000e-01 6.9497e-01
   337 1.1000e-01 6.9497e-01
   338 1.2000e-01 7.4252e-01
   338 1.2000e-01 7.4252e-01
   339 1.3000e-01 7.5360e-01
   339 1.3000e-01 7.5360e-01
   340 1.4000e-01 8.3568e-01
   340 1.4000e-01 8.3568e-01
   341 1.5000e-01 8.6789e-01
   341 1.5000e-01 8.6789e-01
   342 \end{lstlisting}
   342 \end{lstlisting}  %$
   343 \ldots
   343 \ldots
   344 \begin{block}{Windows users:}
   344 \begin{block}{Windows users:}
   345   C:> type pendulum.txt
   345   C:> type pendulum.txt
   346 \end{block}
   346 \end{block}
   347 \end{frame}
   347 \end{frame}
   416 In []: greet.split()
   416 In []: greet.split()
   417 Out[]: ['hello', 'world']
   417 Out[]: ['hello', 'world']
   418   \end{lstlisting}
   418   \end{lstlisting}
   419 This is what happens with \typ{line}
   419 This is what happens with \typ{line}
   420   \begin{lstlisting}
   420   \begin{lstlisting}
   421 In []: line = '1.2000e-01 7.4252e-01'
   421 In []: line = '1.20 7.42'
   422 
   422 
   423 In []: point = line.split()
   423 In []: point = line.split()
   424 
   424 
   425 In []: point
   425 In []: point
   426 Out[]: ['1.2000e-01', '7.4252e-01']
   426 Out[]: ['1.20', '7.42']
   427   \end{lstlisting}
   427   \end{lstlisting}
   428 \end{frame}
   428 \end{frame}
   429 
   429 
   430 \begin{frame}[fragile]
   430 \begin{frame}[fragile]
   431 \frametitle{Getting floats from strings}
   431 \frametitle{Getting floats from strings}