author | Amit Sethi |
Tue, 09 Nov 2010 23:26:39 +0530 | |
changeset 433 | f121a3598ad9 |
parent 432 | c92662f02209 |
child 434 | c8ffd52305ff |
permissions | -rw-r--r-- |
432 | 1 |
% Created 2010-11-09 Tue 23:18 |
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} |
|
432 | 93 |
\frametitle{Question 1} |
94 |
\label{sec-4} |
|
95 |
||
96 |
\begin{itemize} |
|
97 |
\item Plot the given experimental data with large dots. |
|
98 |
\end{itemize} |
|
99 |
||
100 |
The data is on your screen. |
|
101 |
||
102 |
\end{frame} |
|
103 |
\begin{frame} |
|
104 |
\frametitle{Question 1 Data} |
|
105 |
\label{sec-5} |
|
106 |
||
107 |
||
108 |
||
109 |
||
110 |
||
111 |
\begin{center} |
|
112 |
\begin{tabular}{rr} |
|
113 |
S & n \\ |
|
114 |
0.19 & 10.74 \\ |
|
115 |
0.38 & 14.01 \\ |
|
116 |
0.57 & 18.52 \\ |
|
117 |
0.77 & 20.23 \\ |
|
118 |
0.96 & 22.88 \\ |
|
119 |
1.15 & 24.59 \\ |
|
120 |
1.34 & 27.55 \\ |
|
121 |
1.54 & 28.48 \\ |
|
122 |
1.73 & 30.20 \\ |
|
123 |
\end{tabular} |
|
124 |
\end{center} |
|
125 |
||
126 |
||
127 |
||
128 |
\end{frame} |
|
129 |
\begin{frame}[fragile] |
|
130 |
\frametitle{Solution 1} |
|
131 |
\label{sec-6} |
|
132 |
||
133 |
||
134 |
\begin{verbatim} |
|
135 |
S=[0.19,0.38,0.57,0.77,0.96, |
|
136 |
1.15,1.34,1.54,1.73] |
|
137 |
n=[10.74,14.01,18.52,20.23, |
|
138 |
22.88,24.59,27.55,28.48,30.20] |
|
139 |
plot(S,n,'o') |
|
140 |
\end{verbatim} |
|
141 |
\end{frame} |
|
142 |
\begin{frame} |
|
143 |
\frametitle{Question 2} |
|
144 |
\label{sec-7} |
|
145 |
||
146 |
\begin{itemize} |
|
147 |
\item Plot the given experimental data with small dots. |
|
148 |
\end{itemize} |
|
149 |
||
150 |
The data is on your screen. |
|
151 |
\end{frame} |
|
152 |
\begin{frame} |
|
153 |
\frametitle{Question 2 Data} |
|
154 |
\label{sec-8} |
|
155 |
||
156 |
||
157 |
||
158 |
||
159 |
\begin{center} |
|
160 |
\begin{tabular}{rr} |
|
161 |
P & D \\ |
|
162 |
1.48 & 0.68 \\ |
|
163 |
2.96 & 0.89 \\ |
|
164 |
4.44 & 1.18 \\ |
|
165 |
5.92 & 1.29 \\ |
|
166 |
7.40 & 1.46 \\ |
|
167 |
8.88 & 1.57 \\ |
|
168 |
10.3 & 1.76 \\ |
|
169 |
11.8 & 1.82 \\ |
|
170 |
13.3 & 1.93 \\ |
|
171 |
\end{tabular} |
|
172 |
\end{center} |
|
173 |
||
174 |
||
175 |
||
176 |
\end{frame} |
|
177 |
\begin{frame}[fragile] |
|
178 |
\frametitle{Solution 2} |
|
179 |
\label{sec-9} |
|
180 |
||
181 |
||
182 |
\begin{verbatim} |
|
183 |
P=[1.48,2.96,4.44,5.92,7.40, |
|
184 |
8.88,10.3,11.8,13.3] |
|
185 |
D=[0.68,0.89,1.18,1.29,1.46, |
|
186 |
1.57,1.76,1.82,1.93] |
|
187 |
plot(P,D,'.') |
|
188 |
\end{verbatim} |
|
189 |
\end{frame} |
|
190 |
\begin{frame} |
|
372 | 191 |
\frametitle{Adding Error} |
432 | 192 |
\label{sec-10} |
372 | 193 |
|
194 |
||
195 |
||
196 |
||
197 |
\begin{center} |
|
198 |
\begin{tabular}{rrrr} |
|
416 | 199 |
L & T & $\delta$ L & $\delta$ T \\ |
200 |
0.1 & 0.69 & 0.08 & 0.04 \\ |
|
201 |
0.2 & 0.90 & 0.09 & 0.08 \\ |
|
202 |
0.3 & 1.19 & 0.07 & 0.03 \\ |
|
203 |
0.4 & 1.30 & 0.05 & 0.05 \\ |
|
204 |
0.5 & 1.47 & 0.06 & 0.03 \\ |
|
205 |
0.6 & 1.58 & 0.00 & 0.03 \\ |
|
206 |
0.7 & 1.77 & 0.06 & 0.04 \\ |
|
207 |
0.8 & 1.83 & 0.06 & 0.07 \\ |
|
208 |
0.9 & 1.94 & 0.01 & 0.08 \\ |
|
372 | 209 |
\end{tabular} |
210 |
\end{center} |
|
211 |
||
212 |
||
213 |
||
214 |
||
215 |
\end{frame} |
|
216 |
\begin{frame}[fragile] |
|
217 |
\frametitle{Plotting Error bar} |
|
432 | 218 |
\label{sec-11} |
372 | 219 |
|
220 |
||
221 |
\begin{verbatim} |
|
432 | 222 |
errorbar(L,tsquare,xerr=delta_L, yerr=delta_T, |
223 |
fmt='b.') |
|
224 |
\end{verbatim} |
|
225 |
\end{frame} |
|
226 |
\begin{frame} |
|
227 |
\frametitle{Question 1} |
|
228 |
\label{sec-12} |
|
229 |
||
230 |
||
231 |
\begin{itemize} |
|
232 |
\item Plot the given experimental data with large green dots.Also include |
|
233 |
\end{itemize} |
|
234 |
||
235 |
the error in your plot. |
|
236 |
||
237 |
||
238 |
\end{frame} |
|
239 |
\begin{frame} |
|
240 |
\frametitle{Question 1 Data} |
|
241 |
\label{sec-13} |
|
242 |
||
243 |
||
244 |
\#+ORGTBL: L vs T$^2$ orgtbl-to-latex |
|
245 |
||
246 |
||
247 |
\begin{center} |
|
248 |
\begin{tabular}{rrrr} |
|
249 |
S & n & $\delta$ S & $\delta$ n \\ |
|
250 |
0.19 & 10.74 & 0.006 & 0.61 \\ |
|
251 |
0.38 & 14.01 & 0.006 & 0.69 \\ |
|
252 |
0.57 & 18.52 & 0.005 & 0.53 \\ |
|
253 |
0.77 & 20.23 & 0.003 & 0.38 \\ |
|
254 |
0.96 & 22.88 & 0.004 & 0.46 \\ |
|
255 |
1.15 & 24.59 & 0.007 & 0.37 \\ |
|
256 |
1.34 & 27.55 & 0.004 & 0.46 \\ |
|
257 |
1.54 & 28.48 & 0.004 & 0.46 \\ |
|
258 |
1.73 & 30.20 & 0.007 & 0.37 \\ |
|
259 |
\end{tabular} |
|
260 |
\end{center} |
|
261 |
||
262 |
||
263 |
||
264 |
||
265 |
||
266 |
\end{frame} |
|
267 |
\begin{frame}[fragile] |
|
268 |
\frametitle{Solution 1} |
|
269 |
\label{sec-14} |
|
270 |
||
271 |
||
272 |
\begin{verbatim} |
|
273 |
S=[0.19,0.38,0.57,0.77,0.96, |
|
274 |
1.15,1.34,1.54,1.73] |
|
275 |
n=[10.74,14.01,18.52,20.23, |
|
276 |
22.88,24.59,27.55,28.48,30.20] |
|
277 |
delta_S=[0.006,0.006,0.005,0.003, |
|
278 |
0.004,0.007,0.004,0.004,0.007] |
|
279 |
delta_n=[0.61,0.69,0.53,0.38,0.46, |
|
280 |
0.37,0.46,0.46,0.37] |
|
281 |
errorbar(S,n,xerr=delta_S, yerr=delta_n, |
|
282 |
fmt='go') |
|
372 | 283 |
\end{verbatim} |
284 |
\end{frame} |
|
416 | 285 |
\begin{frame}[fragile] |
286 |
\frametitle{Summary} |
|
432 | 287 |
\label{sec-15} |
416 | 288 |
|
289 |
\begin{verbatim} |
|
290 |
L = [0.1, 0.2, 0.3, 0.4, 0.5, | |
|
291 |
0.6, 0.7, 0.8, 0.9] |
|
292 |
plot(x,y,'o') |
|
293 |
plot(x,y,'.') |
|
294 |
errorbar(L,tsquare,xerr=delta_L, yerr=delta_T, fmt='b.') |
|
295 |
\end{verbatim} |
|
296 |
\end{frame} |
|
372 | 297 |
|
298 |
\end{document} |