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