plotting-data/slides.org
changeset 322 3cacbcad4c42
child 372 8e05616c4102
equal deleted inserted replaced
321:2e49b1b72996 322:3cacbcad4c42
       
     1 #+LaTeX_CLASS: beamer
       
     2 #+LaTeX_CLASS_OPTIONS: [presentation]
       
     3 #+BEAMER_FRAME_LEVEL: 1
       
     4 
       
     5 #+BEAMER_HEADER_EXTRA: \usetheme{Warsaw}\useoutertheme{infolines}\usecolortheme{default}\setbeamercovered{transparent}
       
     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
       
     8 #+OPTIONS:   H:5 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
       
     9 
       
    10 #+TITLE: Plotting Experimental Data
       
    11 #+AUTHOR: FOSSEE
       
    12 #+DATE: 2010-09-14 Tue
       
    13 #+EMAIL:     info@fossee.in
       
    14 
       
    15 # \author[FOSSEE] {FOSSEE}
       
    16 
       
    17 # \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
       
    18 # \date{}
       
    19 
       
    20 * Tutorial Plan 
       
    21 ** Plotting Experiment Data and Error Bars 
       
    22 * Pre-requisites 
       
    23 ** Plotting simple analytical Functions 
       
    24 * plot L vs. T^2 
       
    25 
       
    26 #+ORGTBL: L vs T^2 orgtbl-to-latex
       
    27 
       
    28   | L   | T    |
       
    29   | 0.1 | 0.69 |
       
    30   | 0.2 | 0.90 |
       
    31   | 0.3 | 1.19 |
       
    32   | 0.4 | 1.30 |
       
    33   | 0.5 | 1.47 |
       
    34   | 0.6 | 1.58 |
       
    35   | 0.7 | 1.77 |
       
    36   | 0.8 | 1.83 |
       
    37   | 0.9 | 1.94 |
       
    38   
       
    39   
       
    40 
       
    41 
       
    42 * Initializing L & T
       
    43   : In []: L = [0.1, 0.2, 0.3, 0.4, 0.5,
       
    44   :            0.6, 0.7, 0.8, 0.9]
       
    45   : In []: t = [0.69, 0.90, 1.19,
       
    46   :             1.30, 1.47, 1.58,
       
    47   :            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 
       
    61 * Adding an Error Column 
       
    62 
       
    63 
       
    64   |   L |    T | /Delta L | /Delta T |
       
    65   | 0.1 | 0.69 |     0.08 |     0.04 |
       
    66   | 0.2 | 0.90 |     0.09 |     0.08 |
       
    67   | 0.3 | 1.19 |     0.07 |     0.11 |
       
    68   | 0.4 | 1.30 |     0.05 |     0.05 |
       
    69   | 0.5 | 1.47 |     0.06 |     0.03 |
       
    70   | 0.6 | 1.58 |     0.00 |     0.03 |
       
    71   | 0.7 | 1.77 |     0.06 |     0.01 |
       
    72   | 0.8 | 1.83 |     0.06 |     0.07 |
       
    73   | 0.9 | 1.94 |     0.01 |     0.01 |
       
    74  
       
    75  
       
    76 * Plotting Error bar 
       
    77   
       
    78   : In[]: delta_L= [0.08,0.09,0.07,0.05,0.16,
       
    79   :                0.00,0.06,0.06,0.01]
       
    80   : In[]: delta_T= [0.04,0.08,0.11,0.05,0.03,
       
    81   :                0.03,0.01,0.07,0.01]
       
    82 
       
    83   
       
    84