diff options
Diffstat (limited to 'plotting_data')
-rw-r--r-- | plotting_data/script.rst | 72 | ||||
-rw-r--r-- | plotting_data/slides.org | 48 | ||||
-rw-r--r-- | plotting_data/slides.tex | 74 |
3 files changed, 87 insertions, 107 deletions
diff --git a/plotting_data/script.rst b/plotting_data/script.rst index 1ccec05..5d26e62 100644 --- a/plotting_data/script.rst +++ b/plotting_data/script.rst @@ -30,19 +30,14 @@ Plotting Experimental Data .. L1 -<<<<<<< HEAD {{{ Show the first slide containing title, name of the production team along with the logo of MHRD }}} -======= -Hello and welcome to this tutorial on Plotting Experimental data, -presented by the fossee team. ->>>>>>> 1020097fa446ad8c6bdff784d5d0da9e98a55892 .. R1 -Hello Friens.Welcome to this tutorial on "Plotting Experimental data" +Hello Friens and Welcome to this tutorial on +"Plotting Experimental data". -<<<<<<< HEAD .. L2 {{{ Show the Objectives Slide }}} @@ -57,10 +52,9 @@ At the end of this tutorial, you will be able to, #. plot errorbars. .. R3 -======= + One needs to be familiar with the concepts of plotting mathematical functions in Python. ->>>>>>> 1020097fa446ad8c6bdff784d5d0da9e98a55892 We will use data from a Simple Pendulum Experiment to illustrate. @@ -73,9 +67,10 @@ We will use data from a Simple Pendulum Experiment to illustrate. As we know for a simple pendulum, length L is directly proportional to the square of time T. We shall be plotting L and T^2 values. -First we will have to initiate L and T values. We initiate them as sequence -of values. We define a sequence by comma seperated values inside two square brackets. -This is also called a List.Let's create two sequences L and t. +First we will have to initiate L and T values. We initiate them as +sequence of values. We define a sequence by comma seperated values +inside two square brackets. This is also called a List. +Let's create two sequences L and t. .. L4 @@ -88,7 +83,7 @@ This is also called a List.Let's create two sequences L and t. .. R5 To obtain the square of sequence T we will use the function square -with argument T.This is saved into the variable tsquare. +with argument T.This is saved into the variable Tsquare. .. L5 @@ -105,26 +100,14 @@ Now to plot L vs T^2, we will simply type .. L6 -<<<<<<< HEAD :: -======= -This clears the plot. - -You can also specify 'o' for big dots.:: - - plot(L,tsquare,'o') ->>>>>>> 1020097fa446ad8c6bdff784d5d0da9e98a55892 plot(L,Tsquare,'.') .. R7 -<<<<<<< HEAD -here '.' represents to plot use small dots for the point. -You can also specify 'o' for big dots. -======= -Pause video here and solve this exercise. Resume the video once done. ->>>>>>> 1020097fa446ad8c6bdff784d5d0da9e98a55892 +'.' here displays the plot in a dot pattern. +You can also specify 'o' for big dots.For this let us clear the plot first. .. L7 :: @@ -133,33 +116,28 @@ Pause video here and solve this exercise. Resume the video once done. plot(L,Tsquare,'o') clf() -.. L8 - -<<<<<<< HEAD .. R8 -For any experimental there is always an error in measurements due to -instrumental and human constraints.Now we shall try and take these errors into -account in our plots . +LKet us move further.For any experimental there is always an error in +measurements due to instrumental and human constraints.Now we shall try +and take these errors into account in our plots . + +.. L8 .. L9 -{{{ Show the slide 'Question 1' }}} +{{{ Show the slide 'Exercise 1' }}} .. R9 Pause the video here, try out the following exercise and resume the video. -======= -.. #[[Anoop: Make sure code is correct, corrected plot(L,t,o) to - plot(L,t,'o')]] ->>>>>>> 1020097fa446ad8c6bdff784d5d0da9e98a55892 Plot the given experimental data with large dots.The data is on your screen. .. L10 -{{{ Show slide "Question 1 data' }}} +{{{ Show slide 'Exercise 1 data' }}} .. R10 @@ -167,7 +145,8 @@ The error data we will use is on your screen. .. R11 -We shall again intialize the sequence values in the same manner as we did for L and T. +We shall again intialize the sequence values in the same manner as we +did for L and T. .. L11 @@ -209,11 +188,7 @@ of errorbar. :: -<<<<<<< HEAD errorbar? -======= -Please, pause the video here. Do the exercises and then continue. ->>>>>>> 1020097fa446ad8c6bdff784d5d0da9e98a55892 .. L15 @@ -240,13 +215,14 @@ The data is on your screen .. R17 -let's revise quickly what we have learnt today.In this tutorial we learnt +This brings us to the end of the end of this tutorial.In this tutorial, +we have learnt to, 1. to declare a sequence of numbers using the function ``array``. #. to perform elemtwise squaring using the ``square`` function. #. to use the various options available for plotting like dots,lines. -#. to Plot experimental data such that we can also represent error by using the - ``errorbar()`` function. +#. to Plot experimental data such that we can also represent error by + using the ``errorbar()`` function. .. R18 @@ -286,6 +262,6 @@ And the answers, .. R20 -Hope you have enjoyed and found it useful. +Hope you have enjoyed this tutorial and found it useful. Thank You! diff --git a/plotting_data/slides.org b/plotting_data/slides.org index a0159d0..e4750dd 100644 --- a/plotting_data/slides.org +++ b/plotting_data/slides.org @@ -68,43 +68,43 @@ | 0.8 | 1.83 | | 0.9 | 1.94 | -* Question 1 +* Exercise 1 Plot the given experimental data with large dots. -* Question 1 Data +* Exercise 1 Data #+ORGTBL: L vs T^2 orgtbl-to-latex - | L | T | - | 0.08 | 0.04 | - | 0.09 | 0.08 | - | 0.07 | 0.03 | - | 0.05 | 0.05 | - | 0.06 | 0.03 | - | 0.00 | 0.03 | - | 0.06 | 0.04 | - | 0.06 | 0.07 | - | 0.01 | 0.08 | + | \delta L | \delta T | + | 0.08 | 0.04 | + | 0.09 | 0.08 | + | 0.07 | 0.03 | + | 0.05 | 0.05 | + | 0.06 | 0.03 | + | 0.00 | 0.03 | + | 0.06 | 0.04 | + | 0.06 | 0.07 | + | 0.01 | 0.08 | -* Question 2 +* Exercise 2 Plot the given experimental data with small dots. -* Question 2 Data +* Exercise 2 Data #+ORGTBL: L vs T^2 orgtbl-to-latex - | P | D | - | 1.48 | 0.68 | - | 2.96 | 0.89 | - | 4.44 | 1.18 | - | 5.92 | 1.29 | - | 7.40 | 1.46 | - | 8.88 | 1.57 | - | 10.3 | 1.76 | - | 11.8 | 1.82 | - | 13.3 | 1.93 | + | S | n | \delta S | \delta n | + | 0.19 | 10.74 | 0.006 | 0.61 | + | 0.38 | 14.01 | 0.006 | 0.69 | + | 0.57 | 18.52 | 0.005 | 0.53 | + | 0.77 | 20.23 | 0.003 | 0.38 | + | 0.96 | 22.88 | 0.004 | 0.46 | + | 1.15 | 24.59 | 0.007 | 0.37 | + | 1.34 | 27.55 | 0.004 | 0.46 | + | 1.54 | 28.48 | 0.004 | 0.46 | + | 1.73 | 30.20 | 0.007 | 0.37 | * Summary In this tutorial, we have learnt to – diff --git a/plotting_data/slides.tex b/plotting_data/slides.tex index 0a1bfbb..cca46dc 100644 --- a/plotting_data/slides.tex +++ b/plotting_data/slides.tex @@ -1,4 +1,4 @@ -% Created 2011-05-06 Fri 17:36 +% Created 2011-05-23 Mon 15:35 \documentclass[presentation]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} @@ -43,14 +43,18 @@ showstringspaces=false, keywordstyle=\color{blue}\bfseries} \begin{frame} \begin{center} -\textcolor{blue}{Plotting Data} +\vspace{12pt} +\textcolor{blue}{\huge Plotting Data} \end{center} - \begin{center} -\includegraphics[scale=0.25]{../images/iitb-logo.png}\\ -Developed by FOSSEE Team, IIT-Bombay. \\ -Funded by National Mission on Education through ICT - -MHRD, Govt. of India +\vspace{18pt} +\begin{center} +\vspace{10pt} +\includegraphics[scale=0.95]{../images/fossee-logo.png}\\ +\vspace{5pt} +\scriptsize Developed by FOSSEE Team, IIT-Bombay. \\ +\scriptsize Funded by National Mission on Education through ICT\\ +\scriptsize MHRD,Govt. of India\\ +\includegraphics[scale=0.30]{../images/iitb-logo.png}\\ \end{center} \end{frame} \begin{frame} @@ -93,7 +97,7 @@ MHRD, Govt. of India \end{frame} \begin{frame} -\frametitle{Question 1} +\frametitle{Exercise 1} \label{sec-4} Plot the given experimental data with large dots. @@ -101,7 +105,7 @@ MHRD, Govt. of India \end{frame} \begin{frame} -\frametitle{Question 1 Data} +\frametitle{Exercise 1 Data} \label{sec-5} @@ -110,16 +114,16 @@ MHRD, Govt. of India \begin{center} \begin{tabular}{rr} - L & T \\ - 0.08 & 0.04 \\ - 0.09 & 0.08 \\ - 0.07 & 0.03 \\ - 0.05 & 0.05 \\ - 0.06 & 0.03 \\ - 0.00 & 0.03 \\ - 0.06 & 0.04 \\ - 0.06 & 0.07 \\ - 0.01 & 0.08 \\ + $\delta$ L & $\delta$ T \\ + 0.08 & 0.04 \\ + 0.09 & 0.08 \\ + 0.07 & 0.03 \\ + 0.05 & 0.05 \\ + 0.06 & 0.03 \\ + 0.00 & 0.03 \\ + 0.06 & 0.04 \\ + 0.06 & 0.07 \\ + 0.01 & 0.08 \\ \end{tabular} \end{center} @@ -127,30 +131,30 @@ MHRD, Govt. of India \end{frame} \begin{frame} -\frametitle{Question 2} +\frametitle{Exercise 2} \label{sec-6} Plot the given experimental data with small dots. \end{frame} \begin{frame} -\frametitle{Question 2 Data} +\frametitle{Exercise 2 Data} \label{sec-7} \begin{center} -\begin{tabular}{rr} - P & D \\ - 1.48 & 0.68 \\ - 2.96 & 0.89 \\ - 4.44 & 1.18 \\ - 5.92 & 1.29 \\ - 7.40 & 1.46 \\ - 8.88 & 1.57 \\ - 10.3 & 1.76 \\ - 11.8 & 1.82 \\ - 13.3 & 1.93 \\ +\begin{tabular}{rrrr} + S & n & $\delta$ S & $\delta$ n \\ + 0.19 & 10.74 & 0.006 & 0.61 \\ + 0.38 & 14.01 & 0.006 & 0.69 \\ + 0.57 & 18.52 & 0.005 & 0.53 \\ + 0.77 & 20.23 & 0.003 & 0.38 \\ + 0.96 & 22.88 & 0.004 & 0.46 \\ + 1.15 & 24.59 & 0.007 & 0.37 \\ + 1.34 & 27.55 & 0.004 & 0.46 \\ + 1.54 & 28.48 & 0.004 & 0.46 \\ + 1.73 & 30.20 & 0.007 & 0.37 \\ \end{tabular} \end{center} @@ -181,6 +185,7 @@ MHRD, Govt. of India \begin{itemize} \item distance\_values=[2.1,4.6,8.72,9.03] \end{itemize} +\vspace{8pt} \item Plot L v/s T in red plusses. \end{enumerate} \end{frame} @@ -191,12 +196,11 @@ MHRD, Govt. of India \begin{enumerate} \item square(distance\_values) +\vspace{8pt} \item plot(L,T,'r+') \end{enumerate} \end{frame} \begin{frame} -\frametitle{Acknowledgement} -\label{sec-11} \begin{block}{} \begin{center} |