author | Amit Sethi |
Tue, 09 Nov 2010 15:10:13 +0530 | |
changeset 416 | 06ac45f4de88 |
parent 399 | 3c16961361cd |
child 429 | bb6bab81e9f2 |
child 432 | c92662f02209 |
permissions | -rw-r--r-- |
416 | 1 |
% Created 2010-11-09 Tue 15:09 |
372 | 2 |
\documentclass[presentation]{beamer} |
3 |
\usepackage[latin1]{inputenc} |
|
4 |
\usepackage[T1]{fontenc} |
|
399
3c16961361cd
reviewed plotting-data.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
372
diff
changeset
|
5 |
\usepackage{fixltx2e} |
372 | 6 |
\usepackage{graphicx} |
7 |
\usepackage{longtable} |
|
8 |
\usepackage{float} |
|
9 |
\usepackage{wrapfig} |
|
10 |
\usepackage{soul} |
|
399
3c16961361cd
reviewed plotting-data.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
372
diff
changeset
|
11 |
\usepackage{t1enc} |
3c16961361cd
reviewed plotting-data.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
372
diff
changeset
|
12 |
\usepackage{textcomp} |
3c16961361cd
reviewed plotting-data.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
372
diff
changeset
|
13 |
\usepackage{marvosym} |
3c16961361cd
reviewed plotting-data.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
372
diff
changeset
|
14 |
\usepackage{wasysym} |
3c16961361cd
reviewed plotting-data.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
372
diff
changeset
|
15 |
\usepackage{latexsym} |
372 | 16 |
\usepackage{amssymb} |
17 |
\usepackage{hyperref} |
|
399
3c16961361cd
reviewed plotting-data.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
372
diff
changeset
|
18 |
\tolerance=1000 |
416 | 19 |
\usepackage[english]{babel} \usepackage{ae,aecompl} |
20 |
\usepackage{mathpazo,courier,euler} \usepackage[scaled=.95]{helvet} |
|
21 |
\usepackage{listings} |
|
22 |
\lstset{language=Python, basicstyle=\ttfamily\bfseries, |
|
23 |
commentstyle=\color{red}\itshape, stringstyle=\color{darkgreen}, |
|
24 |
showstringspaces=false, keywordstyle=\color{blue}\bfseries} |
|
399
3c16961361cd
reviewed plotting-data.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
372
diff
changeset
|
25 |
\providecommand{\alert}[1]{\textbf{#1}} |
372 | 26 |
|
27 |
\title{Plotting Experimental Data} |
|
28 |
\author{FOSSEE} |
|
29 |
\date{2010-09-14 Tue} |
|
30 |
||
416 | 31 |
\usetheme{Warsaw}\usecolortheme{default}\useoutertheme{infolines}\setbeamercovered{transparent} |
372 | 32 |
\begin{document} |
33 |
||
34 |
\maketitle |
|
35 |
||
36 |
||
37 |
||
38 |
||
39 |
||
40 |
||
416 | 41 |
|
42 |
||
43 |
||
372 | 44 |
\begin{frame} |
416 | 45 |
\frametitle{Outline} |
372 | 46 |
\label{sec-1} |
416 | 47 |
|
372 | 48 |
\begin{itemize} |
416 | 49 |
\item Defining sequence of numbers |
50 |
\item Squaring sequence of numbers |
|
51 |
\item Plotting Data Points |
|
52 |
\item Indicating Error through Errorbars |
|
53 |
\end{itemize} |
|
372 | 54 |
\end{frame} |
55 |
\begin{frame} |
|
416 | 56 |
\frametitle{Simple Pendulum Data} |
372 | 57 |
\label{sec-2} |
58 |
||
59 |
||
60 |
||
61 |
||
62 |
\begin{center} |
|
63 |
\begin{tabular}{rr} |
|
64 |
L & T \\ |
|
65 |
0.1 & 0.69 \\ |
|
66 |
0.2 & 0.90 \\ |
|
67 |
0.3 & 1.19 \\ |
|
68 |
0.4 & 1.30 \\ |
|
69 |
0.5 & 1.47 \\ |
|
70 |
0.6 & 1.58 \\ |
|
71 |
0.7 & 1.77 \\ |
|
72 |
0.8 & 1.83 \\ |
|
73 |
0.9 & 1.94 \\ |
|
74 |
\end{tabular} |
|
75 |
\end{center} |
|
76 |
||
77 |
||
78 |
||
79 |
\end{frame} |
|
80 |
\begin{frame}[fragile] |
|
81 |
\frametitle{Initializing L \& T} |
|
416 | 82 |
\label{sec-3} |
372 | 83 |
|
84 |
\begin{verbatim} |
|
416 | 85 |
L = [0.1, 0.2, 0.3, 0.4, 0.5, |
86 |
0.6, 0.7, 0.8, 0.9] |
|
87 |
t = [0.69, 0.90, 1.19, |
|
88 |
1.30, 1.47, 1.58, |
|
89 |
1.77, 1.83, 1.94] |
|
372 | 90 |
\end{verbatim} |
91 |
\end{frame} |
|
92 |
\begin{frame} |
|
93 |
\frametitle{Adding Error} |
|
416 | 94 |
\label{sec-4} |
372 | 95 |
|
96 |
||
97 |
||
98 |
||
99 |
\begin{center} |
|
100 |
\begin{tabular}{rrrr} |
|
416 | 101 |
L & T & $\delta$ L & $\delta$ T \\ |
102 |
0.1 & 0.69 & 0.08 & 0.04 \\ |
|
103 |
0.2 & 0.90 & 0.09 & 0.08 \\ |
|
104 |
0.3 & 1.19 & 0.07 & 0.03 \\ |
|
105 |
0.4 & 1.30 & 0.05 & 0.05 \\ |
|
106 |
0.5 & 1.47 & 0.06 & 0.03 \\ |
|
107 |
0.6 & 1.58 & 0.00 & 0.03 \\ |
|
108 |
0.7 & 1.77 & 0.06 & 0.04 \\ |
|
109 |
0.8 & 1.83 & 0.06 & 0.07 \\ |
|
110 |
0.9 & 1.94 & 0.01 & 0.08 \\ |
|
372 | 111 |
\end{tabular} |
112 |
\end{center} |
|
113 |
||
114 |
||
115 |
||
116 |
||
117 |
\end{frame} |
|
118 |
\begin{frame}[fragile] |
|
119 |
\frametitle{Plotting Error bar} |
|
416 | 120 |
\label{sec-5} |
372 | 121 |
|
122 |
||
123 |
\begin{verbatim} |
|
124 |
In[]: errorbar(L,tsquare,xerr=delta_L, yerr=delta_T, |
|
125 |
fmt='b.') |
|
126 |
\end{verbatim} |
|
127 |
\end{frame} |
|
416 | 128 |
\begin{frame}[fragile] |
129 |
\frametitle{Summary} |
|
130 |
\label{sec-6} |
|
131 |
||
132 |
\begin{verbatim} |
|
133 |
L = [0.1, 0.2, 0.3, 0.4, 0.5, | |
|
134 |
0.6, 0.7, 0.8, 0.9] |
|
135 |
plot(x,y,'o') |
|
136 |
plot(x,y,'.') |
|
137 |
errorbar(L,tsquare,xerr=delta_L, yerr=delta_T, fmt='b.') |
|
138 |
\end{verbatim} |
|
139 |
\end{frame} |
|
372 | 140 |
|
141 |
\end{document} |