372
|
1 |
% Created 2010-10-28 Thu 15:05
|
|
2 |
\documentclass[presentation]{beamer}
|
|
3 |
\usetheme{Warsaw}\useoutertheme{infolines}\usecolortheme{default}\setbeamercovered{transparent}
|
|
4 |
\usepackage[latin1]{inputenc}
|
|
5 |
\usepackage[T1]{fontenc}
|
|
6 |
\usepackage{graphicx}
|
|
7 |
\usepackage{longtable}
|
|
8 |
\usepackage{float}
|
|
9 |
\usepackage{wrapfig}
|
|
10 |
\usepackage{soul}
|
|
11 |
\usepackage{amssymb}
|
|
12 |
\usepackage{hyperref}
|
|
13 |
|
|
14 |
|
|
15 |
\title{Plotting Experimental Data}
|
|
16 |
\author{FOSSEE}
|
|
17 |
\date{2010-09-14 Tue}
|
|
18 |
|
|
19 |
\begin{document}
|
|
20 |
|
|
21 |
\maketitle
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
\begin{frame}
|
|
29 |
\frametitle{Tutorial Plan}
|
|
30 |
\label{sec-1}
|
|
31 |
\begin{itemize}
|
|
32 |
|
|
33 |
\item Plotting Experiment Data and Error Bars\\
|
|
34 |
\label{sec-1.1}%
|
|
35 |
\end{itemize} % ends low level
|
|
36 |
\end{frame}
|
|
37 |
\begin{frame}
|
|
38 |
\frametitle{Pre-requisites}
|
|
39 |
\label{sec-2}
|
|
40 |
\begin{itemize}
|
|
41 |
|
|
42 |
\item Plotting simple analytical Functions\\
|
|
43 |
\label{sec-2.1}%
|
|
44 |
\end{itemize} % ends low level
|
|
45 |
\end{frame}
|
|
46 |
\begin{frame}
|
|
47 |
\frametitle{plot L vs. T$^2$}
|
|
48 |
\label{sec-3}
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
\begin{center}
|
|
54 |
\begin{tabular}{rr}
|
|
55 |
L & T \\
|
|
56 |
0.1 & 0.69 \\
|
|
57 |
0.2 & 0.90 \\
|
|
58 |
0.3 & 1.19 \\
|
|
59 |
0.4 & 1.30 \\
|
|
60 |
0.5 & 1.47 \\
|
|
61 |
0.6 & 1.58 \\
|
|
62 |
0.7 & 1.77 \\
|
|
63 |
0.8 & 1.83 \\
|
|
64 |
0.9 & 1.94 \\
|
|
65 |
\end{tabular}
|
|
66 |
\end{center}
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
\end{frame}
|
|
72 |
\begin{frame}[fragile]
|
|
73 |
\frametitle{Initializing L \& T}
|
|
74 |
\label{sec-4}
|
|
75 |
|
|
76 |
\begin{verbatim}
|
|
77 |
In []: L = [0.1, 0.2, 0.3, 0.4, 0.5,
|
|
78 |
0.6, 0.7, 0.8, 0.9]
|
|
79 |
In []: t = [0.69, 0.90, 1.19,
|
|
80 |
1.30, 1.47, 1.58,
|
|
81 |
1.77, 1.83, 1.94]
|
|
82 |
\end{verbatim}
|
|
83 |
\end{frame}
|
|
84 |
\begin{frame}[fragile]
|
|
85 |
\frametitle{square()}
|
|
86 |
\label{sec-5}
|
|
87 |
|
|
88 |
\begin{verbatim}
|
|
89 |
In []: tsquare=square(t)
|
|
90 |
\end{verbatim}
|
|
91 |
|
|
92 |
|
|
93 |
\begin{verbatim}
|
|
94 |
array([ 0.4761, 0.81 , 1.4161, 1.69 , 2.1609, 2.4964, 3.1329,
|
|
95 |
3.3489, 3.7636])
|
|
96 |
\end{verbatim}
|
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
\end{frame}
|
|
101 |
\begin{frame}[fragile]
|
|
102 |
\frametitle{Plotting}
|
|
103 |
\label{sec-6}
|
|
104 |
|
|
105 |
\begin{verbatim}
|
|
106 |
In[]: plot(L,t,.)
|
|
107 |
\end{verbatim}
|
|
108 |
|
|
109 |
|
|
110 |
|
|
111 |
\begin{verbatim}
|
|
112 |
In[]: plot(L,t,o)
|
|
113 |
\end{verbatim}
|
|
114 |
\end{frame}
|
|
115 |
\begin{frame}
|
|
116 |
\frametitle{Adding Error}
|
|
117 |
\label{sec-7}
|
|
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
\begin{center}
|
|
123 |
\begin{tabular}{rrrr}
|
|
124 |
L & T & /Delta L & /Delta T \\
|
|
125 |
0.1 & 0.69 & 0.08 & 0.04 \\
|
|
126 |
0.2 & 0.90 & 0.09 & 0.08 \\
|
|
127 |
0.3 & 1.19 & 0.07 & 0.11 \\
|
|
128 |
0.4 & 1.30 & 0.05 & 0.05 \\
|
|
129 |
0.5 & 1.47 & 0.06 & 0.03 \\
|
|
130 |
0.6 & 1.58 & 0.00 & 0.03 \\
|
|
131 |
0.7 & 1.77 & 0.06 & 0.01 \\
|
|
132 |
0.8 & 1.83 & 0.06 & 0.07 \\
|
|
133 |
0.9 & 1.94 & 0.01 & 0.01 \\
|
|
134 |
\end{tabular}
|
|
135 |
\end{center}
|
|
136 |
|
|
137 |
|
|
138 |
|
|
139 |
|
|
140 |
\end{frame}
|
|
141 |
\begin{frame}[fragile]
|
|
142 |
\frametitle{Plotting Error bar}
|
|
143 |
\label{sec-8}
|
|
144 |
|
|
145 |
|
|
146 |
\begin{verbatim}
|
|
147 |
In[]: errorbar(L,tsquare,xerr=delta_L, yerr=delta_T,
|
|
148 |
fmt='b.')
|
|
149 |
\end{verbatim}
|
|
150 |
\end{frame}
|
|
151 |
|
|
152 |
\end{document}
|