author | Anoop Jacob Thomas<anoop@fossee.in> |
Sun, 07 Nov 2010 19:47:26 +0530 | |
changeset 399 | 3c16961361cd |
parent 372 | 8e05616c4102 |
child 416 | 06ac45f4de88 |
permissions | -rw-r--r-- |
399
3c16961361cd
reviewed plotting-data.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
372
diff
changeset
|
1 |
% Created 2010-11-07 Sun 18:57 |
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 |
3c16961361cd
reviewed plotting-data.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
372
diff
changeset
|
19 |
\providecommand{\alert}[1]{\textbf{#1}} |
372 | 20 |
|
21 |
\title{Plotting Experimental Data} |
|
22 |
\author{FOSSEE} |
|
23 |
\date{2010-09-14 Tue} |
|
24 |
||
399
3c16961361cd
reviewed plotting-data.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
372
diff
changeset
|
25 |
\usetheme{Warsaw}\useoutertheme{infolines}\usecolortheme{default}\setbeamercovered{transparent} |
372 | 26 |
\begin{document} |
27 |
||
28 |
\maketitle |
|
29 |
||
30 |
||
31 |
||
32 |
||
33 |
||
34 |
||
35 |
\begin{frame} |
|
36 |
\frametitle{Tutorial Plan} |
|
37 |
\label{sec-1} |
|
38 |
\begin{itemize} |
|
39 |
||
40 |
\item Plotting Experiment Data and Error Bars\\ |
|
399
3c16961361cd
reviewed plotting-data.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
372
diff
changeset
|
41 |
\label{sec-1_1}% |
372 | 42 |
\end{itemize} % ends low level |
43 |
\end{frame} |
|
44 |
\begin{frame} |
|
45 |
\frametitle{Pre-requisites} |
|
46 |
\label{sec-2} |
|
47 |
\begin{itemize} |
|
48 |
||
49 |
\item Plotting simple analytical Functions\\ |
|
399
3c16961361cd
reviewed plotting-data.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
372
diff
changeset
|
50 |
\label{sec-2_1}% |
372 | 51 |
\end{itemize} % ends low level |
52 |
\end{frame} |
|
53 |
\begin{frame} |
|
54 |
\frametitle{plot L vs. T$^2$} |
|
55 |
\label{sec-3} |
|
56 |
||
57 |
||
58 |
||
59 |
||
60 |
\begin{center} |
|
61 |
\begin{tabular}{rr} |
|
62 |
L & T \\ |
|
63 |
0.1 & 0.69 \\ |
|
64 |
0.2 & 0.90 \\ |
|
65 |
0.3 & 1.19 \\ |
|
66 |
0.4 & 1.30 \\ |
|
67 |
0.5 & 1.47 \\ |
|
68 |
0.6 & 1.58 \\ |
|
69 |
0.7 & 1.77 \\ |
|
70 |
0.8 & 1.83 \\ |
|
71 |
0.9 & 1.94 \\ |
|
72 |
\end{tabular} |
|
73 |
\end{center} |
|
74 |
||
75 |
||
76 |
||
77 |
||
78 |
\end{frame} |
|
79 |
\begin{frame}[fragile] |
|
80 |
\frametitle{Initializing L \& T} |
|
81 |
\label{sec-4} |
|
82 |
||
83 |
\begin{verbatim} |
|
84 |
In []: L = [0.1, 0.2, 0.3, 0.4, 0.5, |
|
85 |
0.6, 0.7, 0.8, 0.9] |
|
86 |
In []: t = [0.69, 0.90, 1.19, |
|
87 |
1.30, 1.47, 1.58, |
|
88 |
1.77, 1.83, 1.94] |
|
89 |
\end{verbatim} |
|
90 |
\end{frame} |
|
91 |
\begin{frame}[fragile] |
|
92 |
\frametitle{square()} |
|
93 |
\label{sec-5} |
|
94 |
||
95 |
\begin{verbatim} |
|
96 |
In []: tsquare=square(t) |
|
97 |
\end{verbatim} |
|
98 |
||
99 |
||
100 |
\begin{verbatim} |
|
101 |
array([ 0.4761, 0.81 , 1.4161, 1.69 , 2.1609, 2.4964, 3.1329, |
|
102 |
3.3489, 3.7636]) |
|
103 |
\end{verbatim} |
|
104 |
||
105 |
||
106 |
||
107 |
\end{frame} |
|
108 |
\begin{frame}[fragile] |
|
109 |
\frametitle{Plotting} |
|
110 |
\label{sec-6} |
|
111 |
||
112 |
\begin{verbatim} |
|
113 |
In[]: plot(L,t,.) |
|
114 |
\end{verbatim} |
|
115 |
||
116 |
||
117 |
||
118 |
\begin{verbatim} |
|
119 |
In[]: plot(L,t,o) |
|
120 |
\end{verbatim} |
|
121 |
\end{frame} |
|
122 |
\begin{frame} |
|
123 |
\frametitle{Adding Error} |
|
124 |
\label{sec-7} |
|
125 |
||
126 |
||
127 |
||
128 |
||
129 |
\begin{center} |
|
130 |
\begin{tabular}{rrrr} |
|
131 |
L & T & /Delta L & /Delta T \\ |
|
132 |
0.1 & 0.69 & 0.08 & 0.04 \\ |
|
133 |
0.2 & 0.90 & 0.09 & 0.08 \\ |
|
134 |
0.3 & 1.19 & 0.07 & 0.11 \\ |
|
135 |
0.4 & 1.30 & 0.05 & 0.05 \\ |
|
136 |
0.5 & 1.47 & 0.06 & 0.03 \\ |
|
137 |
0.6 & 1.58 & 0.00 & 0.03 \\ |
|
138 |
0.7 & 1.77 & 0.06 & 0.01 \\ |
|
139 |
0.8 & 1.83 & 0.06 & 0.07 \\ |
|
140 |
0.9 & 1.94 & 0.01 & 0.01 \\ |
|
141 |
\end{tabular} |
|
142 |
\end{center} |
|
143 |
||
144 |
||
145 |
||
146 |
||
147 |
\end{frame} |
|
148 |
\begin{frame}[fragile] |
|
149 |
\frametitle{Plotting Error bar} |
|
150 |
\label{sec-8} |
|
151 |
||
152 |
||
153 |
\begin{verbatim} |
|
154 |
In[]: errorbar(L,tsquare,xerr=delta_L, yerr=delta_T, |
|
155 |
fmt='b.') |
|
156 |
\end{verbatim} |
|
157 |
\end{frame} |
|
158 |
||
159 |
\end{document} |