plotting-data/slides.tex
changeset 432 c92662f02209
parent 416 06ac45f4de88
child 434 c8ffd52305ff
equal deleted inserted replaced
420:27d2561e617a 432:c92662f02209
     1 % Created 2010-11-09 Tue 15:09
     1 % Created 2010-11-09 Tue 23:18
     2 \documentclass[presentation]{beamer}
     2 \documentclass[presentation]{beamer}
     3 \usepackage[latin1]{inputenc}
     3 \usepackage[latin1]{inputenc}
     4 \usepackage[T1]{fontenc}
     4 \usepackage[T1]{fontenc}
     5 \usepackage{fixltx2e}
     5 \usepackage{fixltx2e}
     6 \usepackage{graphicx}
     6 \usepackage{graphicx}
    88         1.30, 1.47, 1.58,
    88         1.30, 1.47, 1.58,
    89         1.77, 1.83, 1.94]
    89         1.77, 1.83, 1.94]
    90 \end{verbatim}
    90 \end{verbatim}
    91 \end{frame}
    91 \end{frame}
    92 \begin{frame}
    92 \begin{frame}
       
    93 \frametitle{Question 1}
       
    94 \label{sec-4}
       
    95 
       
    96 \begin{itemize}
       
    97 \item Plot the given experimental data with large dots.
       
    98 \end{itemize}
       
    99 
       
   100   The data is on your screen.     
       
   101   
       
   102 \end{frame}
       
   103 \begin{frame}
       
   104 \frametitle{Question 1 Data}
       
   105 \label{sec-5}
       
   106 
       
   107 
       
   108     
       
   109   
       
   110 
       
   111 \begin{center}
       
   112 \begin{tabular}{rr}
       
   113     S  &      n  \\
       
   114  0.19  &  10.74  \\
       
   115  0.38  &  14.01  \\
       
   116  0.57  &  18.52  \\
       
   117  0.77  &  20.23  \\
       
   118  0.96  &  22.88  \\
       
   119  1.15  &  24.59  \\
       
   120  1.34  &  27.55  \\
       
   121  1.54  &  28.48  \\
       
   122  1.73  &  30.20  \\
       
   123 \end{tabular}
       
   124 \end{center}
       
   125 
       
   126 
       
   127     
       
   128 \end{frame}
       
   129 \begin{frame}[fragile]
       
   130 \frametitle{Solution 1}
       
   131 \label{sec-6}
       
   132 
       
   133 
       
   134 \begin{verbatim}
       
   135    S=[0.19,0.38,0.57,0.77,0.96,
       
   136      1.15,1.34,1.54,1.73]
       
   137    n=[10.74,14.01,18.52,20.23,
       
   138       22.88,24.59,27.55,28.48,30.20]
       
   139    plot(S,n,'o')
       
   140 \end{verbatim}
       
   141 \end{frame}
       
   142 \begin{frame}
       
   143 \frametitle{Question 2}
       
   144 \label{sec-7}
       
   145 
       
   146 \begin{itemize}
       
   147 \item Plot the given experimental data with small dots.
       
   148 \end{itemize}
       
   149 
       
   150   The data is on your screen.     
       
   151 \end{frame}
       
   152 \begin{frame}
       
   153 \frametitle{Question 2 Data}
       
   154 \label{sec-8}
       
   155 
       
   156 
       
   157 
       
   158 
       
   159 \begin{center}
       
   160 \begin{tabular}{rr}
       
   161     P  &     D  \\
       
   162  1.48  &  0.68  \\
       
   163  2.96  &  0.89  \\
       
   164  4.44  &  1.18  \\
       
   165  5.92  &  1.29  \\
       
   166  7.40  &  1.46  \\
       
   167  8.88  &  1.57  \\
       
   168  10.3  &  1.76  \\
       
   169  11.8  &  1.82  \\
       
   170  13.3  &  1.93  \\
       
   171 \end{tabular}
       
   172 \end{center}
       
   173 
       
   174 
       
   175   
       
   176 \end{frame}
       
   177 \begin{frame}[fragile]
       
   178 \frametitle{Solution 2}
       
   179 \label{sec-9}
       
   180 
       
   181 
       
   182 \begin{verbatim}
       
   183     P=[1.48,2.96,4.44,5.92,7.40,
       
   184       8.88,10.3,11.8,13.3]
       
   185     D=[0.68,0.89,1.18,1.29,1.46,
       
   186       1.57,1.76,1.82,1.93]
       
   187     plot(P,D,'.')
       
   188 \end{verbatim}
       
   189 \end{frame}
       
   190 \begin{frame}
    93 \frametitle{Adding Error}
   191 \frametitle{Adding Error}
    94 \label{sec-4}
   192 \label{sec-10}
    95 
   193 
    96 
   194 
    97 
   195 
    98 
   196 
    99 \begin{center}
   197 \begin{center}
   115  
   213  
   116  
   214  
   117 \end{frame}
   215 \end{frame}
   118 \begin{frame}[fragile]
   216 \begin{frame}[fragile]
   119 \frametitle{Plotting Error bar}
   217 \frametitle{Plotting Error bar}
   120 \label{sec-5}
   218 \label{sec-11}
   121 
   219 
   122   
   220   
   123 \begin{verbatim}
   221 \begin{verbatim}
   124    In[]: errorbar(L,tsquare,xerr=delta_L, yerr=delta_T,
   222    errorbar(L,tsquare,xerr=delta_L, yerr=delta_T,
   125                   fmt='b.')
   223            fmt='b.')
       
   224 \end{verbatim}
       
   225 \end{frame}
       
   226 \begin{frame}
       
   227 \frametitle{Question 1}
       
   228 \label{sec-12}
       
   229 
       
   230 
       
   231 \begin{itemize}
       
   232 \item Plot the given experimental data with large green dots.Also include
       
   233 \end{itemize}
       
   234 
       
   235   the error in your plot. 
       
   236 
       
   237   
       
   238 \end{frame}
       
   239 \begin{frame}
       
   240 \frametitle{Question 1 Data}
       
   241 \label{sec-13}
       
   242 
       
   243 
       
   244   \#+ORGTBL: L vs T$^2$ orgtbl-to-latex
       
   245 
       
   246 
       
   247 \begin{center}
       
   248 \begin{tabular}{rrrr}
       
   249     S  &      n  &  $\delta$ S  &  $\delta$ n  \\
       
   250  0.19  &  10.74  &       0.006  &        0.61  \\
       
   251  0.38  &  14.01  &       0.006  &        0.69  \\
       
   252  0.57  &  18.52  &       0.005  &        0.53  \\
       
   253  0.77  &  20.23  &       0.003  &        0.38  \\
       
   254  0.96  &  22.88  &       0.004  &        0.46  \\
       
   255  1.15  &  24.59  &       0.007  &        0.37  \\
       
   256  1.34  &  27.55  &       0.004  &        0.46  \\
       
   257  1.54  &  28.48  &       0.004  &        0.46  \\
       
   258  1.73  &  30.20  &       0.007  &        0.37  \\
       
   259 \end{tabular}
       
   260 \end{center}
       
   261 
       
   262 
       
   263   
       
   264   
       
   265     
       
   266 \end{frame}
       
   267 \begin{frame}[fragile]
       
   268 \frametitle{Solution 1}
       
   269 \label{sec-14}
       
   270 
       
   271   
       
   272 \begin{verbatim}
       
   273    S=[0.19,0.38,0.57,0.77,0.96,
       
   274      1.15,1.34,1.54,1.73]
       
   275    n=[10.74,14.01,18.52,20.23,
       
   276      22.88,24.59,27.55,28.48,30.20]
       
   277    delta_S=[0.006,0.006,0.005,0.003,
       
   278            0.004,0.007,0.004,0.004,0.007]
       
   279    delta_n=[0.61,0.69,0.53,0.38,0.46,
       
   280            0.37,0.46,0.46,0.37]
       
   281    errorbar(S,n,xerr=delta_S, yerr=delta_n, 
       
   282            fmt='go')
   126 \end{verbatim}
   283 \end{verbatim}
   127 \end{frame}
   284 \end{frame}
   128 \begin{frame}[fragile]
   285 \begin{frame}[fragile]
   129 \frametitle{Summary}
   286 \frametitle{Summary}
   130 \label{sec-6}
   287 \label{sec-15}
   131 
   288 
   132 \begin{verbatim}
   289 \begin{verbatim}
   133   L = [0.1, 0.2, 0.3, 0.4, 0.5,                                             |
   290   L = [0.1, 0.2, 0.3, 0.4, 0.5,                                             |
   134        0.6, 0.7, 0.8, 0.9]  
   291        0.6, 0.7, 0.8, 0.9]  
   135   plot(x,y,'o')
   292   plot(x,y,'o')