presentations/loadtxt.tex
author asokan <asokan@fossee.in>
Tue, 18 May 2010 15:40:17 +0530
changeset 126 2eac725a5766
parent 45 9d61db7bf2f4
permissions -rw-r--r--
changes to array.txt
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
43
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     2
%Tutorial slides on Python.
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     3
%
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     4
% Author: FOSSEE 
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     5
% Copyright (c) 2009, FOSSEE, IIT Bombay
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     6
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     7
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     8
\documentclass[14pt,compress]{beamer}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     9
%\documentclass[draft]{beamer}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    10
%\documentclass[compress,handout]{beamer}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    11
%\usepackage{pgfpages} 
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    12
%\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    13
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    14
% Modified from: generic-ornate-15min-45min.de.tex
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    15
\mode<presentation>
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    16
{
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    17
  \usetheme{Warsaw}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    18
  \useoutertheme{infolines}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    19
  \setbeamercovered{transparent}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    20
}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    21
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    22
\usepackage[english]{babel}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    23
\usepackage[latin1]{inputenc}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    24
%\usepackage{times}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    25
\usepackage[T1]{fontenc}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    26
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    27
% Taken from Fernando's slides.
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    28
\usepackage{ae,aecompl}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    29
\usepackage{mathpazo,courier,euler}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    30
\usepackage[scaled=.95]{helvet}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    31
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    32
\definecolor{darkgreen}{rgb}{0,0.5,0}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    33
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    34
\usepackage{listings}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    35
\lstset{language=Python,
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    36
    basicstyle=\ttfamily\bfseries,
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    37
    commentstyle=\color{red}\itshape,
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    38
  stringstyle=\color{darkgreen},
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    39
  showstringspaces=false,
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    40
  keywordstyle=\color{blue}\bfseries}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    41
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    42
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    43
% Macros
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    44
\setbeamercolor{emphbar}{bg=blue!20, fg=black}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    45
\newcommand{\emphbar}[1]
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    46
{\begin{beamercolorbox}[rounded=true]{emphbar} 
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    47
      {#1}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    48
 \end{beamercolorbox}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    49
}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    50
\newcounter{time}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    51
\setcounter{time}{0}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    52
\newcommand{\inctime}[1]{\addtocounter{time}{#1}{\tiny \thetime\ m}}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    53
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    54
\newcommand{\typ}[1]{\lstinline{#1}}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    55
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    56
\newcommand{\kwrd}[1]{ \texttt{\textbf{\color{blue}{#1}}}  }
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    57
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    58
%%% This is from Fernando's setup.
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    59
% \usepackage{color}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    60
% \definecolor{orange}{cmyk}{0,0.4,0.8,0.2}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    61
% % Use and configure listings package for nicely formatted code
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    62
% \usepackage{listings}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    63
% \lstset{
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    64
%    language=Python,
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    65
%    basicstyle=\small\ttfamily,
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    66
%    commentstyle=\ttfamily\color{blue},
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    67
%    stringstyle=\ttfamily\color{orange},
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    68
%    showstringspaces=false,
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    69
%    breaklines=true,
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    70
%    postbreak = \space\dots
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    71
% }
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    72
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    73
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    74
% Title page
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    75
\title{Python for Scientific Computing : Plotting Experimental Data Contd.}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    76
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    77
\author[FOSSEE] {FOSSEE}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    78
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    79
\institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    80
\date{}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    81
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    82
% DOCUMENT STARTS
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    83
\begin{document}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    84
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    85
\begin{frame}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    86
  \maketitle
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    87
\end{frame}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    88
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    89
\begin{frame}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    90
  \frametitle{About the Session}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    91
  \begin{block}{Goal}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    92
    \begin{itemize}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    93
    \item Plotting experimental data from files - advanced
45
9d61db7bf2f4 Minor edits.
Shantanu <shantanu@fossee.in>
parents: 44
diff changeset
    94
    \item Performing statistical operations in an efficient way
43
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    95
    \end{itemize}    
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    96
  \end{block}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    97
  \begin{block}{Checklist}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    98
    \begin{itemize}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    99
    \item pendulum.txt
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   100
  \end{itemize}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   101
  \end{block}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   102
\end{frame}
44
31173328496d Minor edits.
baali@shantanu
parents: 43
diff changeset
   103
\begin{frame}[fragile]
31173328496d Minor edits.
baali@shantanu
parents: 43
diff changeset
   104
\frametitle{Equations}
31173328496d Minor edits.
baali@shantanu
parents: 43
diff changeset
   105
  \begin{itemize}
31173328496d Minor edits.
baali@shantanu
parents: 43
diff changeset
   106
  \item We know that $ t = 2\pi \sqrt{\frac{l}{g}} $
31173328496d Minor edits.
baali@shantanu
parents: 43
diff changeset
   107
  \item So $ g = \frac{4 \pi^2 l}{t^2}  $
31173328496d Minor edits.
baali@shantanu
parents: 43
diff changeset
   108
  \item Calculate ``g'' - acceleration due to gravity for each pair of L and T
31173328496d Minor edits.
baali@shantanu
parents: 43
diff changeset
   109
  \end{itemize}
31173328496d Minor edits.
baali@shantanu
parents: 43
diff changeset
   110
\end{frame}
31173328496d Minor edits.
baali@shantanu
parents: 43
diff changeset
   111
  
43
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   112
\begin{frame}[fragile]
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   113
  \frametitle{Summary}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   114
  \begin{block}{}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   115
    \begin{itemize}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   116
    \item loadtxt
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   117
    \item Basic operations/usage of arrays
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   118
    \item Statistical functions
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   119
    \end{itemize}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   120
  \end{block}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   121
\end{frame}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   122
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   123
\begin{frame}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   124
  \frametitle{Thank you!}  
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   125
  \begin{block}{}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   126
  This session is part of \textcolor{blue}{FOSSEE} project funded by:
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   127
  \begin{center}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   128
    \textcolor{blue}{NME through ICT from MHRD, Govt. of India}.
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   129
  \end{center}  
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   130
  \end{block}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   131
\end{frame}
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   132
1791f634cece Added presentation for loadtxt and stat session.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   133
\end{document}