plotting-data/slides.org
changeset 416 06ac45f4de88
parent 372 8e05616c4102
child 429 bb6bab81e9f2
child 432 c92662f02209
equal deleted inserted replaced
415:8afa31ae6129 416:06ac45f4de88
     1 #+LaTeX_CLASS: beamer
     1 #+LaTeX_CLASS: beamer
     2 #+LaTeX_CLASS_OPTIONS: [presentation]
     2 #+LaTeX_CLASS_OPTIONS: [presentation]
     3 #+BEAMER_FRAME_LEVEL: 1
     3 #+BEAMER_FRAME_LEVEL: 1
     4 
     4 
     5 #+BEAMER_HEADER_EXTRA: \usetheme{Warsaw}\useoutertheme{infolines}\usecolortheme{default}\setbeamercovered{transparent}
     5 #+BEAMER_HEADER_EXTRA: \usetheme{Warsaw}\usecolortheme{default}\useoutertheme{infolines}\setbeamercovered{transparent}
     6 #+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) %4BEAMER_col(Col) %8BEAMER_extra(Extra)
     6 #+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) %4BEAMER_col(Col) %8BEAMER_extra(Extra)
     7 #+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 :ETC
     7 #+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 :ETC
     8 #+OPTIONS:   H:5 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
     8 
       
     9 #+LaTeX_CLASS: beamer
       
    10 #+LaTeX_CLASS_OPTIONS: [presentation]
       
    11 
       
    12 #+LaTeX_HEADER: \usepackage[english]{babel} \usepackage{ae,aecompl}
       
    13 #+LaTeX_HEADER: \usepackage{mathpazo,courier,euler} \usepackage[scaled=.95]{helvet}
       
    14 
       
    15 #+LaTeX_HEADER: \usepackage{listings}
       
    16 
       
    17 #+LaTeX_HEADER:\lstset{language=Python, basicstyle=\ttfamily\bfseries,
       
    18 #+LaTeX_HEADER:  commentstyle=\color{red}\itshape, stringstyle=\color{darkgreen},
       
    19 #+LaTeX_HEADER:  showstringspaces=false, keywordstyle=\color{blue}\bfseries}
     9 
    20 
    10 #+TITLE: Plotting Experimental Data
    21 #+TITLE: Plotting Experimental Data
    11 #+AUTHOR: FOSSEE
    22 #+AUTHOR: FOSSEE
    12 #+DATE: 2010-09-14 Tue
    23 #+DATE: 2010-09-14 Tue
    13 #+EMAIL:     info@fossee.in
    24 #+EMAIL:     info@fossee.in
    14 
    25 
    15 # \author[FOSSEE] {FOSSEE}
    26 #+DESCRIPTION: 
       
    27 #+KEYWORDS: 
       
    28 #+LANGUAGE:  en
       
    29 #+OPTIONS:   H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
       
    30 #+OPTIONS:   TeX:t LaTeX:nil skip:nil d:nil todo:nil pri:nil tags:not-in-toc
    16 
    31 
    17 # \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
    32 * Outline 
    18 # \date{}
    33    - Defining sequence of numbers
       
    34    - Squaring sequence of numbers
       
    35    - Plotting Data Points
       
    36    - Indicating Error through Errorbars
    19 
    37 
    20 * Tutorial Plan 
    38 * Simple Pendulum Data
    21 ** Plotting Experiment Data and Error Bars 
       
    22 * Pre-requisites 
       
    23 ** Plotting simple analytical Functions 
       
    24 * plot L vs. T^2 
       
    25 
    39 
    26 #+ORGTBL: L vs T^2 orgtbl-to-latex
    40 #+ORGTBL: L vs T^2 orgtbl-to-latex
    27 
    41 
    28   | L   | T    |
    42   | L   | T    |
    29   | 0.1 | 0.69 |
    43   | 0.1 | 0.69 |
    34   | 0.6 | 1.58 |
    48   | 0.6 | 1.58 |
    35   | 0.7 | 1.77 |
    49   | 0.7 | 1.77 |
    36   | 0.8 | 1.83 |
    50   | 0.8 | 1.83 |
    37   | 0.9 | 1.94 |
    51   | 0.9 | 1.94 |
    38   
    52   
    39   
       
    40 
       
    41 
    53 
    42 * Initializing L & T
    54 * Initializing L & T
    43   : In []: L = [0.1, 0.2, 0.3, 0.4, 0.5,
    55   : L = [0.1, 0.2, 0.3, 0.4, 0.5,
    44   :            0.6, 0.7, 0.8, 0.9]
    56   :      0.6, 0.7, 0.8, 0.9]
    45   : In []: t = [0.69, 0.90, 1.19,
    57   : t = [0.69, 0.90, 1.19,
    46   :             1.30, 1.47, 1.58,
    58   :      1.30, 1.47, 1.58,
    47   :            1.77, 1.83, 1.94]
    59   :      1.77, 1.83, 1.94]
    48 * square()
       
    49   : In []: tsquare=square(t)
       
    50   
       
    51   : array([ 0.4761,  0.81  ,  1.4161,  1.69  ,  2.1609,  2.4964,  3.1329,
       
    52   :       3.3489,  3.7636])
       
    53 
       
    54   
       
    55 * Plotting   
       
    56   : In[]: plot(L,t,.)
       
    57   
       
    58 
       
    59   : In[]: plot(L,t,o)
       
    60 
    60 
    61 * Adding Error 
    61 * Adding Error 
    62 
    62 
    63 
    63 
    64   |   L |    T | /Delta L | /Delta T |
    64   |   L |    T | \delta L | \delta T |
    65   | 0.1 | 0.69 |     0.08 |     0.04 |
    65   | 0.1 | 0.69 |     0.08 |     0.04 |
    66   | 0.2 | 0.90 |     0.09 |     0.08 |
    66   | 0.2 | 0.90 |     0.09 |     0.08 |
    67   | 0.3 | 1.19 |     0.07 |     0.11 |
    67   | 0.3 | 1.19 |     0.07 |     0.03 |
    68   | 0.4 | 1.30 |     0.05 |     0.05 |
    68   | 0.4 | 1.30 |     0.05 |     0.05 |
    69   | 0.5 | 1.47 |     0.06 |     0.03 |
    69   | 0.5 | 1.47 |     0.06 |     0.03 |
    70   | 0.6 | 1.58 |     0.00 |     0.03 |
    70   | 0.6 | 1.58 |     0.00 |     0.03 |
    71   | 0.7 | 1.77 |     0.06 |     0.01 |
    71   | 0.7 | 1.77 |     0.06 |     0.04 |
    72   | 0.8 | 1.83 |     0.06 |     0.07 |
    72   | 0.8 | 1.83 |     0.06 |     0.07 |
    73   | 0.9 | 1.94 |     0.01 |     0.01 |
    73   | 0.9 | 1.94 |     0.01 |     0.08 |
    74  
    74  
    75  
    75  
    76 * Plotting Error bar 
    76 * Plotting Error bar 
    77   
    77   
    78   : In[]: errorbar(L,tsquare,xerr=delta_L, yerr=delta_T,
    78   : In[]: errorbar(L,tsquare,xerr=delta_L, yerr=delta_T,
    79   :                fmt='b.')
    79   :                fmt='b.')
    80 
    80 
    81 
    81 * Summary 
       
    82  : L = [0.1, 0.2, 0.3, 0.4, 0.5,                                             |
       
    83  :      0.6, 0.7, 0.8, 0.9]  
       
    84  : plot(x,y,'o')
       
    85  : plot(x,y,'.')
       
    86  : errorbar(L,tsquare,xerr=delta_L, yerr=delta_T, fmt='b.')