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