plotting-data/slides.org
author Puneeth Chaganti <punchagan@fossee.in>
Tue, 19 Oct 2010 14:26:29 +0530
changeset 338 e4a7d0924143
parent 322 3cacbcad4c42
child 372 8e05616c4102
permissions -rw-r--r--
Reviewed Least Square Fit LO.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
322
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
     1
#+LaTeX_CLASS: beamer
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
     2
#+LaTeX_CLASS_OPTIONS: [presentation]
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
     3
#+BEAMER_FRAME_LEVEL: 1
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
     4
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
     5
#+BEAMER_HEADER_EXTRA: \usetheme{Warsaw}\useoutertheme{infolines}\usecolortheme{default}\setbeamercovered{transparent}
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
     6
#+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) %4BEAMER_col(Col) %8BEAMER_extra(Extra)
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
     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
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
     8
#+OPTIONS:   H:5 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
     9
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    10
#+TITLE: Plotting Experimental Data
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    11
#+AUTHOR: FOSSEE
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    12
#+DATE: 2010-09-14 Tue
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    13
#+EMAIL:     info@fossee.in
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    14
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    15
# \author[FOSSEE] {FOSSEE}
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    16
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    17
# \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    18
# \date{}
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    19
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    20
* Tutorial Plan 
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    21
** Plotting Experiment Data and Error Bars 
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    22
* Pre-requisites 
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    23
** Plotting simple analytical Functions 
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    24
* plot L vs. T^2 
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    25
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    26
#+ORGTBL: L vs T^2 orgtbl-to-latex
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    27
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    28
  | L   | T    |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    29
  | 0.1 | 0.69 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    30
  | 0.2 | 0.90 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    31
  | 0.3 | 1.19 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    32
  | 0.4 | 1.30 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    33
  | 0.5 | 1.47 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    34
  | 0.6 | 1.58 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    35
  | 0.7 | 1.77 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    36
  | 0.8 | 1.83 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    37
  | 0.9 | 1.94 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    38
  
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    39
  
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    40
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    41
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    42
* Initializing L & T
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    43
  : In []: L = [0.1, 0.2, 0.3, 0.4, 0.5,
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    44
  :            0.6, 0.7, 0.8, 0.9]
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    45
  : In []: t = [0.69, 0.90, 1.19,
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    46
  :             1.30, 1.47, 1.58,
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    47
  :            1.77, 1.83, 1.94]
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    48
* square()
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    49
  : In []: tsquare=square(t)
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    50
  
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    51
  : array([ 0.4761,  0.81  ,  1.4161,  1.69  ,  2.1609,  2.4964,  3.1329,
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    52
  :       3.3489,  3.7636])
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    53
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    54
  
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    55
* Plotting   
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    56
  : In[]: plot(L,t,.)
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    57
  
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    58
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    59
  : In[]: plot(L,t,o)
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    60
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    61
* Adding an Error Column 
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    62
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    63
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    64
  |   L |    T | /Delta L | /Delta T |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    65
  | 0.1 | 0.69 |     0.08 |     0.04 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    66
  | 0.2 | 0.90 |     0.09 |     0.08 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    67
  | 0.3 | 1.19 |     0.07 |     0.11 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    68
  | 0.4 | 1.30 |     0.05 |     0.05 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    69
  | 0.5 | 1.47 |     0.06 |     0.03 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    70
  | 0.6 | 1.58 |     0.00 |     0.03 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    71
  | 0.7 | 1.77 |     0.06 |     0.01 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    72
  | 0.8 | 1.83 |     0.06 |     0.07 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    73
  | 0.9 | 1.94 |     0.01 |     0.01 |
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    74
 
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    75
 
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    76
* Plotting Error bar 
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    77
  
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    78
  : In[]: delta_L= [0.08,0.09,0.07,0.05,0.16,
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    79
  :                0.00,0.06,0.06,0.01]
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    80
  : In[]: delta_T= [0.04,0.08,0.11,0.05,0.03,
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    81
  :                0.03,0.01,0.07,0.01]
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    82
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    83
  
3cacbcad4c42 Adding plotting data
amit
parents:
diff changeset
    84