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