summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--additional_features_of_ipython/slides.org18
-rw-r--r--embellishing_a_plot/slides.org18
-rw-r--r--getting_started_with_for/script.rst379
-rw-r--r--getting_started_with_for/slides.org120
-rw-r--r--getting_started_with_for/slides.tex186
-rw-r--r--getting_started_with_ipython/slides.org18
-rw-r--r--getting_started_with_ipython/slides.tex20
-rw-r--r--getting_started_with_lists/slides.org18
-rw-r--r--images/fossee-logo.pngbin0 -> 13587 bytes
-rw-r--r--images/iitb-logo.pngbin53952 -> 13756 bytes
-rw-r--r--loading_data_from_files/slides.org18
-rw-r--r--multiple_plots/script.rst2
-rw-r--r--multiple_plots/slides.org30
-rw-r--r--other_types_of_plots/slides.org18
-rw-r--r--plotting_data/slides.org20
-rw-r--r--saving_plots/slides.org41
-rw-r--r--using_plot_interactively/oldscript.rst226
-rw-r--r--using_plot_interactively/slides.org19
18 files changed, 509 insertions, 642 deletions
diff --git a/additional_features_of_ipython/slides.org b/additional_features_of_ipython/slides.org
index e899837..93a595b 100644
--- a/additional_features_of_ipython/slides.org
+++ b/additional_features_of_ipython/slides.org
@@ -32,14 +32,18 @@
*
#+begin_latex
\begin{center}
-\textcolor{blue}{Additional Features of \texttt{ipython}}
+\vspace{12pt}
+\textcolor{blue}{\huge Additional features of \texttt{ipython}}
\end{center}
+\vspace{18pt}
\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{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_latex
* Objectives
@@ -98,7 +102,7 @@ MHRD, Govt. of India
2. %save filepath 2-5 7 9-11
3. %hist 5 10
-* Acknowledgement
+*
#+begin_latex
\begin{block}{}
\begin{center}
diff --git a/embellishing_a_plot/slides.org b/embellishing_a_plot/slides.org
index b51dae0..78890b2 100644
--- a/embellishing_a_plot/slides.org
+++ b/embellishing_a_plot/slides.org
@@ -32,14 +32,18 @@
*
#+begin_latex
\begin{center}
-\textcolor{blue}{Embellishing a Plot}
+\vspace{12pt}
+\textcolor{blue}{\huge Embellishing a Plot}
\end{center}
+\vspace{18pt}
\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{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_latex
* Objectives
@@ -91,7 +95,7 @@ MHRD, Govt. of India
3. title("$x^2-5x+6$")
-* Acknowledgement
+*
#+begin_latex
\begin{block}{}
\begin{center}
diff --git a/getting_started_with_for/script.rst b/getting_started_with_for/script.rst
index 69f925b..304cbe5 100644
--- a/getting_started_with_for/script.rst
+++ b/getting_started_with_for/script.rst
@@ -30,279 +30,362 @@
Getting started with for loop
=============================
-{{{ show welcome slide }}}
+.. L1
-Hello and welcome to the tutorial `Getting started with ``for`` loop`.
+{{{ Show the first slide containing title, name of the production
+team along with the logo of MHRD }}}
-{{{ switch to next slide, outline slide }}}
+.. R1
-In this tutorial we will learn about ``for`` loops in python, and also
-learn how to write blocks of code in Python.
+Hello and welcome to the tutorial on `Getting started with ``for`` loop`.
-.. #[Nishanth]: Instead of saying basics of indenting code,
- say How to define code blocks in Python
+.. L2
-{{{ switch to next slide, about whitespaces }}}
+{{{ Show slide with objectives }}}
+
+.. R2
+
+At the end of this tutorial, you will be able to,
+
+ 1. Write blocks of code in python using indentation.
+ #. Use the ``for`` loop.
+ #. Use ``range()`` function.
+ #. Write blocks in python interpreter
+ #. Write blocks in ipython interpreter.
+
+.. L3
+
+{{{ switch to next slide, 'Whitespace in python' }}}
+
+.. R3
In Python whitespace is significant, and the blocks are visually
-separated.
+separated.The best practice is to indent the code using four spaces.
-.. #[nishanth]: Simply tell how blocks are defined in python.
- The details like braces are not used and its
- advantages like neat code can be told after completely
- explaining the indentation
+As you can see in the slide, “Block B” is an inner block, indented by 4 spaces.
+After “Block B” the next statement in ”Block A” starts from the same
+indentation level of other ”Block A” Statements.
-.. #[Amit]: Do you want to do that here. May be its better to talk about
- this after some initiation into the idea of blocks.
+.. R4
-The best practice is to indent the code using four spaces.
+Start the ipython interpreter using ipython -pylab.
-.. #[Nishanth]: Even this detail may be skipped. Simply say use 4 spaces
- for indentation. Do that while typing so that they can
- actually see what is being typed.
+.. L4
+::
+
+ ipython -pylab
-As you can see in the slide, ``Block B`` is an inner block and it is
-indented using 4 spaces, and after ``Block B`` the next statement in
-``Block A`` starts from the same indentation level of other ``Block
-A`` statements.
+.. R5
Now let us move straight into ``for`` loop.
-{{{ switch to next slide, problem statement of exercise 1 }}}
+.. L5
+.. L6
-Write a for loop which iterates through a list of numbers and find the
-square root of each number.
-::
+{{{ switch to slide showing Question 1 }}}
- numbers are 1369, 7225, 3364, 7056, 5625, 729, 7056, 576, 2916
+.. R6
-.. #[nishanth]: making new list with square roots induces extra complication
- like appending which has no use case here
+Write a for loop which iterates through a list of numbers and find the
+square root of each number.
+numbers are 1369, 7225, 3364, 7056, 5625, 729, 7056, 576, 2916
-.. #[Nishanth]: The problem focuses more on square root and creation
- of list. The problem must be simple and focusing on
- nothing more but the indentation and for loop.
- May be change the problem to print squares than to
- print square roots.
+.. R7
For the problem, first we need to create a ``list`` of numbers and
then iterate over the list and find the square root of each element in
it. And let us create a script, rather than typing it out in the
-interpreter itself. Create a script called list_roots.py and type the
-following.
+interpreter itself. Open your text editor and type the following code shown on the slide.
-{{{ open the text editor and paste the following code there }}}
-::
+.. L7
- numbers = [1369, 7225, 3364, 7056, 5625, 729, 7056, 576, 2916]
- for each in numbers:
- print "Square root of", each, "is", sqrt(each)
- print "This is not in for loop!"
+{{{ Switch to the slide Solution 1 }}}
-.. numbers = [1, 12, 3, 4, 21, 17]
- for each in numbers:
- print each, each * each
+.. L8
-.. #[nishanth]: I don't see a use case to append the sq_root to
- square_roots. It is only complicating stuff.
- Simply iterate and print.
+{{{ switch to next slide, save & run script }}}
-{{{ switch to next slide, save and run script }}}
+.. R8
-{{{ save the script }}}
+Now switch to your terminal and run the script as,
-Now save the script, and run it from your IPython interpreter. I
-assume that you have started your IPython interpreter using ``-pylab``
-option.
-
-Run the script as,
+.. L9
::
%run -i list_roots.py
-.. #[Nishanth]: you don't have to use the -i option here
-
-{{{ run the script }}}
+.. R9
So that was easy! All what we did was iterate over the list element by
element and then use the element for calculation. Note that here we
-used two variables. One the variable ``numbers``, which is a list,
-another one ``each``, which is the element of list under consideration
+used two variables,the variable ``numbers``, which is a list,and the
+other variable ``each``, which is the element of list under consideration
in each cycle of the ``for`` loop. The variable names can be chosen by
you.
-.. #[Nishanth]: The details like we didn't have to find the length
- are relevant for people who have programmed in C or
- other languages earlier. But for a newbie it is more
- of confusing extra info. That part may be skipped.
- Simply go ahead and focus on the syntax of for loop.
- And how the variable name is used inside the for loop.
- If you modify the question to only print, the extra
- variable sq_root can also be avoided. let it be more
- about "each", "numbers" and "for". no other new names.
+.. L10
{{{ show the script which was created }}}
+.. R10
+
Note that the lines after ``for`` statement, is indented using four
spaces.
-{{{ highlight the line after for statement }}}
+.. L11
+
+{{{ highlight the line after ``for`` statement }}}
+
+.. R11
-It means that line is part of the for loop. And it is a block of code,
-although it is only a single statement in the block. And the fourth
-line or the immediate line after the ``for`` block is not indented,
+It means that line is a part of the for loop. And it is a block of code,
+although it is only a single statement in the block. Also, the fourth
+line or the immediate line after the ``for`` block is not indented.
-{{{ highlight the fourth line - the line just after for loop }}}
+.. L12
-it means that it is not part of the ``for`` loop and the lines after
-that doesn't fall in the scope of the ``for`` loop. Thus each block is
+{{{ Highlight the fourth line - the line just after for loop }}}
+
+.. R12
+
+It means that it is not a part of the ``for`` loop and the lines after
+that dont fall in the scope of the ``for`` loop. Thus each block is
separated by the indentation level and that marks the importance of
white-spaces in Python.
-{{{ switch to the slide which shows the problem statement of the first
-problem to be tried out }}}
-
-Now a question for you to try, from the given numbers make a list of
-perfect squares and a list of those which are not. The numbers are,
-::
-
- 7225, 3268, 3364, 2966, 7056, 5625, 729, 5547, 7056, 576, 2916
+.. L13
-Pause here and try to solve the problem before proceeding further.
+{{{ switch to slide showing Question 2 }}}
-{{{ switch to next slide, problem statement of second problem in
-solved exercise}}}
+.. R13
-Now let us try a simple one, to print the square root of numbers in
-the list. And this time let us do it right in the IPython
-interpreter.
+Print the square root of numbers in the list.
+And this time let us do it right in the IPython interpreter.
+So let us create a list.
-{{{ switch to next slide, Indentation in ``ipython`` }}}
+.. L14
{{{ switch focus to the IPython interpreter }}}
-
-So let us start with making a list. Type the following
::
numbers = [1369, 7225, 3364, 7056, 5625, 729, 7056, 576, 2916]
for each in numbers:
-and now you will notice that, as soon as you press the return key
+{{{ Hit enter }}}
+
+.. R14
+
+You will notice that, as soon as you press the enter key
after for statement, the prompt changes to four dots and the cursor is
not right after the four dots but there are four spaces from the
-dots. Please note that IPython automatically indents the block. The
-four dots tell you that you are inside a block. Now type the rest of
-the ``for`` loop,
+dots.
+
+.. L15
+
+{{{ Higlight the four dots }}}
+
+.. R15
-{{{ switch to next slide, Indentation in ``ipython`` (cont'd) }}}
+Please note that IPython automatically indents the block. The
+four dots tell you that you are inside a block.
-.. #[Nishanth]: Tell that IPython does auto indentation.
+.. R16
+Now type the rest of the ``for`` loop,
+
+.. L16
::
- print "Square root of", each,
- print "is", sqrt(each)
+ print "Square root of", each,
+ print "is", sqrt(each)
+
+.. R17
Now we have finished the statements in the block, and still the
interpreter is showing four dots, this means that you are still inside the
block. To exit from the block press the return key or the enter key twice
-without entering anything else. It printed the square root of each
-number in the list, and that is executed in a ``for`` loop.
+without entering anything else.
+
+.. L17
+
+{{{ Hit enter twice }}}
+
+.. R18
+
+It printed the square root of each
+number in the list, which was executed in the ``for`` loop.
+
+.. L18
+
+.. L19
+
+{{{ switch to slide Question 3 }}}
+
+.. R19
-{{{ switch to next slide, Indentation in ``python`` interpreter }}}
+Find the cube of all the numbers from one to ten.
+But this time let us try it in the vanilla version of Python interpreter.
-Now, let us find the cube of all the numbers from one to ten. But this
-time let us try it in the vanilla version of Python interpreter.
+.. R20
Start the vanilla version of Python interpreter by issuing the command
``python`` in your terminal.
-{{{ open the python interpreter in the terminal using the command
-python to start the vanilla Python interpreter }}}
+.. L20
-{{{ switch to next slide, Indentation in ``python`` interpreter
-(cont'd) }}}
-
-Start with,
+{{{ Switch to the terminal }}}
::
+
+ python
for i in range(1,11):
-and press enter once, and we will see that this time it shows four
+{{{ Hit enter }}}
+
+.. R21
+
+press enter once, and we will see that this time it shows four
dots, but the cursor is close to the dots, so we have to indent the
-block. The vanilla version of Python interpreter does not indent the
+block.
+
+.. L21
+
+{{{ Highlight the cursor }}}
+
+.. R22
+
+The vanilla version of Python interpreter does not indent the
code automatically. So enter four spaces there and then type the
following
+
+.. L22
::
- print i, "cube is", i**3
+ print i, "cube is", i**3
+
+.. R23
+
+Now when we hit enter, we still see the four dots.To get out of the
+block, hit enter once again.
-Now when we hit enter, we still see the four dots, to get out of the
-block, hit enter once again
+.. L23
-.. #[Nishanth]: Here also the overhead on print can be reduced.
- Think of a simple print statement. This statement
- will be confusing for a newbie.
- We can focus more on indentation in python.
+{{{ Hit enter }}}
-.. #[nishanth]: Not sure if you must use range here. You can
- define a list of numbers and iterate on it.
- Then say this list can also be generated using
- the range function and hence introduce range.
+.. L24
{{{ switch to the next slide, ``range()`` function }}}
-Okay! so the main thing that we learned here is how to use Python
-interpreter and IPython interpreter to specify blocks. But while we
+.. R24
+
+Okay! so the main thing we learnt here is how to use the Python
+interpreter and the IPython interpreter to specify blocks. But while we
were generating the multiplication table we used something new,
``range()`` function. ``range()`` is an inbuilt function in Python
which can be used to generate a ``list`` of integers from a starting
number to an ending number. Note that the ending number that you
specify will not be included in the ``list``.
-.. #[Nishanth]: Show some examples of range without the step argument
- May be give an exercise with negative numbers as arguments
+.. L25
-{{{ switch to next slide, problem statement of the next problem in
-solved exercises }}}
+{{{ switch to next slide Question 4 }}}
-Now, let us print all the odd numbers from 1 to 50. Pause here and try
-to solve the problem yourself.
+.. R25
+Print all the odd numbers from 1 to 50.
Let us do it in our IPython interpreter for ease of use.
+.. L26
+
{{{ switch focus to ipython interpreter }}}
+::
+
+ ipython
+
+.. R26
The problem can be solved by just using the ``range()`` function.
It can be solved as,
+
+.. L27
::
print range(1,51,2)
+.. R27
+
This time we passed three parameters to ``range()`` function unlike
the previous case where we passed only two parameters. The first two
-parameters are the same in both the cases. The first parameter is the
+parameters are same in both the cases. The first parameter is the
starting number of the sequence and the second parameter is the end of
-the range. Note that the sequence doesn't include the ending
+the range. Note that the sequence does not include the ending
number. The third parameter is for stepping through the sequence. Here
we gave two which means we are skipping every alternate element.
-{{{ switch to next slide, summary slide }}}
+.. L28
+
+{{{ switch to Summary slide }}}
+
+.. R28
+
+This brings us to the end of the tutorial.In this tutorial,we learnt to,
+
+ 1. create blocks in python using ``for`` loop
+ #. indent the blocks of code
+ #. iterate over a list using ``for`` loop
+ #. use the ``range()`` function
-Thus we come to the end of this tutorial. We learned about blocks in
-Python, indentation, blocks in IPython, for loop, iterating over a
-list and then the ``range()`` function.
+.. L29
-.. #[Amit]: There does seem to too much overhead of details. Should
- the first example be done using script is it necessary.
- Do add some things in evolutionary manner. Like introducing
- range as a list and doing a very very simple for loop.Like
- iterating over [1,2,3] .Before getting into a problem.
- And club details about problem in one paragraph and syntactic details
- in other.
+{{Show self assessment questions slide}}
-{{{ switch to next slide, thank you slide }}}
+.. R29
+Here are some self assessment questions for you to solve
+
+1. Indentation is not mandatory in Python
+
+ - True
+ - False
+
+2. Write a code using ``for`` loop to print the product of all
+ natural numbers from 1 to 20.
+
+
+3. What will be the output of-
+::
+
+ range(1,5)
+
+.. L30
+
+{{{ solution of self assessment questions on slide }}}
+
+.. R30
+
+And the answers,
+
+1. False.Indentation is essential in python.
+
+2. We use the ``for`` loop in the following manner.
+::
+
+ y = 1
+ for x in range(1,21):
+ y*=x
+ print y
+
+3. ``range(1,5)`` will produce a list of integers from 1 to 4.
+ [1,2,3,4]
+
+.. L31
+
+{{{ switch to Thank you slide }}}
+
+.. R31
+
+Hope you have enjoyed and found it useful.
Thank you!
+
diff --git a/getting_started_with_for/slides.org b/getting_started_with_for/slides.org
index 51cb7ab..f922baa 100644
--- a/getting_started_with_for/slides.org
+++ b/getting_started_with_for/slides.org
@@ -18,7 +18,7 @@
#+LaTeX_HEADER: commentstyle=\color{red}\itshape, stringstyle=\color{darkgreen},
#+LaTeX_HEADER: showstringspaces=false, keywordstyle=\color{blue}\bfseries}
-#+TITLE: Getting started with for
+#+TITLE:
#+AUTHOR: FOSSEE
#+EMAIL:
#+DATE:
@@ -29,10 +29,31 @@
#+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:nil pri:nil tags:not-in-toc
-* Outline
- - ~for~ loop in Python.
- - Blocks of code in Python.
- - Indentation
+*
+ #+begin_latex
+\begin{center}
+\vspace{12pt}
+\textcolor{blue}{\huge Getting started with \texttt{for}}
+\end{center}
+\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_latex
+* Objectives
+ At the end of this tutorial, you will be able to,
+ - Write blocks of code in python.
+ - Use the ``for`` loop.
+ - Use ``range()`` function.
+ - Write blocks in python interpreter
+ - Write blocks in ipython interpreter.
* Whitespace in Python
- Whitespace is significant
- blocks are visually separated
@@ -43,7 +64,7 @@
: Block B
: Block A
~Block B~ is an inner block and is indented using 4 spaces
-* Exercise 1
+* Question 1
Write a ~for~ loop which iterates through a list of numbers and find
the square root of each number.
:
@@ -65,53 +86,16 @@
- Save the script as ~list_roots.py~
- Run in ~ipython~ interpreter as,
: In []: %run -i list_roots.py
-* Exercise 2
- From the given numbers make a list of perfect squares and a list of those which are not.
- :
- The numbers are,
- : 7225, 3268, 3364, 2966, 7056, 5625, 729, 5547,
- : 7056, 576, 2916
-* Exercise 3 (indentation in ~ipython~)
+* Question 2
Print the square root of numbers in the list.
:
Numbers are,
: 7225, 3268, 3364, 2966, 7056, 5625, 729, 5547,
: 7056, 576, 2916
-* Indentation in ~ipython~
- : In []: numbers = [1369, 7225, 3364, 7056, 5625,
- : ...: 729, 7056, 576, 2916]
-
- : In []: for each in numbers:
- : ...:
- Note the four spaces here
- :
- :
- :
- :
- :
- :
-* Indentation in ~ipython~ (cont'd)
- : In []: numbers = [1369, 7225, 3364, 7056, 5625,
- : ...: 729, 7056, 576, 2916]
- : In []: for each in numbers:
- : ...:
- Note the four spaces here
- :
- Now type the rest of the code
- : ...: print "Square root of", each,
- : ...: print "is", sqrt(each)
- : ...:
- : ...:
-* Indentation in ~python~ interpreter
+* Question 3
Find out the cube of all the numbers from 1 to 10.
:
/do it in the python interpreter/
-* Indentation in ~python~ interpreter (cont'd)
- #+begin_src python
- >>> for i in range(1, 11):
- ... print i, "cube is", i**3
- ...
- #+end_src
* ~range()~ function
- in built function in Python
- generates a list of integers
@@ -119,26 +103,46 @@
- /example:/
- range(1, 20) - /generates integers from 1 to 20/
- range(20) - /generates integers from 0 to 20/
-* Exercise 4
+* Question 4
Print all the odd numbers from 1 to 50.
* Summary
- - blocks in ~python~
- - indentation
- - blocks in ~ipython~ interpreter
- - ~for~ loop
- - iterating over list using ~for~ loop
- - ~range()~ function
-* Thank you!
+ In this tutorial,we learnt to,
+ - Create blocks in python using ``for
+ - Indent the blocks of code
+ - Iterate over a list using ``for`` loop
+ - Use the ``range()`` function
+* Evaluation
+ 1. Indentation is not mandatory in Python
+
+ - True
+ - False
+
+ 2. Write a code using ``for`` loop to print the product of all
+ natural numbers from 1 to 20.
+
+
+ 3. What will be the output of-
+ range(1,5)
+* Solutions
+ 1. False
+
+ 2. y = 1
+ for x in range(1,21):
+ y*=x
+ print y
+
+ 3. [1,2,3,4]
+*
#+begin_latex
\begin{block}{}
\begin{center}
- This spoken tutorial has been produced by the
- \textcolor{blue}{FOSSEE} team, which is funded by the
+ \textcolor{blue}{\Large THANK YOU!}
\end{center}
+ \end{block}
+\begin{block}{}
\begin{center}
- \textcolor{blue}{National Mission on Education through \\
- Information \& Communication Technology \\
- MHRD, Govt. of India}.
+ For more Information, visit our website\\
+ \url{http://fossee.in/}
\end{center}
\end{block}
#+end_latex
diff --git a/getting_started_with_for/slides.tex b/getting_started_with_for/slides.tex
index f6c1eaa..d8706fc 100644
--- a/getting_started_with_for/slides.tex
+++ b/getting_started_with_for/slides.tex
@@ -1,4 +1,4 @@
-% Created 2010-10-12 Tue 12:55
+% Created 2011-05-13 Fri 12:39
\documentclass[presentation]{beamer}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
@@ -8,7 +8,6 @@
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
-\usepackage{t1enc}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
@@ -24,14 +23,14 @@ commentstyle=\color{red}\itshape, stringstyle=\color{darkgreen},
showstringspaces=false, keywordstyle=\color{blue}\bfseries}
\providecommand{\alert}[1]{\textbf{#1}}
-\title{Getting started with for}
+\title{}
\author{FOSSEE}
\date{}
\usetheme{Warsaw}\usecolortheme{default}\useoutertheme{infolines}\setbeamercovered{transparent}
\begin{document}
-\maketitle
+
@@ -42,30 +41,42 @@ showstringspaces=false, keywordstyle=\color{blue}\bfseries}
\begin{frame}
-\frametitle{Outline}
-\label{sec-1}
-\begin{itemize}
-\item \texttt{for} loop in Python.
-\item Blocks of code in Python.
+\begin{center}
+\textcolor{blue}{Getting started -- \texttt{for}}
+\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
-\begin{itemize}
-\item Indentation
-\end{itemize}
+MHRD, Govt. of India
+\end{center}
+\end{frame}
+\begin{frame}
+\frametitle{Objectives}
+\label{sec-2}
+
+ At the end of this tutorial, you will be able to,
+\begin{itemize}
+\item Write blocks of code in python.
+\item Use the ``for`` loop.
+\item Use ``range()`` function.
+\item Write blocks in python interpreter
+\item Write blocks in ipython interpreter.
\end{itemize}
\end{frame}
\begin{frame}[fragile]
\frametitle{Whitespace in Python}
-\label{sec-2}
+\label{sec-3}
+
\begin{itemize}
\item Whitespace is significant
-
\begin{itemize}
\item blocks are visually separated
\end{itemize}
-
\item Blocks are indented using 4 spaces
\begin{verbatim}
Block A
@@ -75,14 +86,14 @@ showstringspaces=false, keywordstyle=\color{blue}\bfseries}
Block A
\end{verbatim}
- \texttt{Block B} is an inner block and is indented using 4 spaces
+ \verb~Block B~ is an inner block and is indented using 4 spaces
\end{itemize}
\end{frame}
\begin{frame}[fragile]
-\frametitle{Exercise 1}
-\label{sec-3}
+\frametitle{Question 1}
+\label{sec-4}
- Write a \texttt{for} loop which iterates through a list of numbers and find
+ Write a \verb~for~ loop which iterates through a list of numbers and find
the square root of each number.
\begin{verbatim}
@@ -96,13 +107,13 @@ showstringspaces=false, keywordstyle=\color{blue}\bfseries}
\end{frame}
\begin{frame}[fragile]
\frametitle{Solution 1}
-\label{sec-4}
+\label{sec-5}
+
\begin{itemize}
\item Open text editor and type the following code
-\end{itemize}
-
-\begin{verbatim}
+\lstset{language=Python}
+\begin{lstlisting}
numbers = [1369, 7225, 3364, 7056, 5625, 729, 7056,
576, 2916]
@@ -110,15 +121,17 @@ for each in numbers:
print "Square root of", each, "is", sqrt(each)
print "This is not in for loop!"
-\end{verbatim}
+\end{lstlisting}
+\end{itemize}
\end{frame}
\begin{frame}[fragile]
\frametitle{Save \& run script}
-\label{sec-5}
+\label{sec-6}
+
\begin{itemize}
-\item Save the script as \texttt{list\_roots.py}
-\item Run in \texttt{ipython} interpreter as,
+\item Save the script as \verb~list_roots.py~
+\item Run in \verb~ipython~ interpreter as,
\begin{verbatim}
In []: %run -i list_roots.py
\end{verbatim}
@@ -126,22 +139,7 @@ print "This is not in for loop!"
\end{itemize}
\end{frame}
\begin{frame}[fragile]
-\frametitle{Exercise 2}
-\label{sec-6}
-
- From the given numbers make a list of perfect squares and a list of those which are not.
-\begin{verbatim}
-
-\end{verbatim}
-
- The numbers are,
-\begin{verbatim}
- 7225, 3268, 3364, 2966, 7056, 5625, 729, 5547,
- 7056, 576, 2916
-\end{verbatim}
-\end{frame}
-\begin{frame}[fragile]
-\frametitle{Exercise 3 (indentation in \texttt{ipython})}
+\frametitle{Question 2}
\label{sec-7}
Print the square root of numbers in the list.
@@ -156,58 +154,9 @@ print "This is not in for loop!"
\end{verbatim}
\end{frame}
\begin{frame}[fragile]
-\frametitle{Indentation in \texttt{ipython}}
+\frametitle{Question 3}
\label{sec-8}
-\begin{verbatim}
- In []: numbers = [1369, 7225, 3364, 7056, 5625,
- ...: 729, 7056, 576, 2916]
-\end{verbatim}
-
-
-\begin{verbatim}
- In []: for each in numbers:
- ...:
-\end{verbatim}
-
- Note the four spaces here
-\begin{verbatim}
-
-
-
-
-
-
-\end{verbatim}
-\end{frame}
-\begin{frame}[fragile]
-\frametitle{Indentation in \texttt{ipython} (cont'd)}
-\label{sec-9}
-
-\begin{verbatim}
- In []: numbers = [1369, 7225, 3364, 7056, 5625,
- ...: 729, 7056, 576, 2916]
- In []: for each in numbers:
- ...:
-\end{verbatim}
-
- Note the four spaces here
-\begin{verbatim}
-
-\end{verbatim}
-
- Now type the rest of the code
-\begin{verbatim}
- ...: print "Square root of", each,
- ...: print "is", sqrt(each)
- ...:
- ...:
-\end{verbatim}
-\end{frame}
-\begin{frame}[fragile]
-\frametitle{Indentation in \texttt{python} interpreter}
-\label{sec-10}
-
Find out the cube of all the numbers from 1 to 10.
\begin{verbatim}
@@ -215,71 +164,56 @@ print "This is not in for loop!"
\emph{do it in the python interpreter}
\end{frame}
-\begin{frame}[fragile]
-\frametitle{Indentation in \texttt{python} interpreter (cont'd)}
-\label{sec-11}
-
-\begin{verbatim}
->>> for i in range(1, 11):
-... print i, "cube is", i**3
-...
-\end{verbatim}
-\end{frame}
\begin{frame}
-\frametitle{\texttt{range()} function}
-\label{sec-12}
+\frametitle{\verb~range()~ function}
+\label{sec-9}
+
\begin{itemize}
\item in built function in Python
\item generates a list of integers
-
\begin{itemize}
\item \emph{syntax:} range([start,] stop[, step])
\item \emph{example:}
-
\begin{itemize}
\item range(1, 20) - \emph{generates integers from 1 to 20}
\item range(20) - \emph{generates integers from 0 to 20}
\end{itemize}
-
\end{itemize}
-
\end{itemize}
\end{frame}
\begin{frame}
-\frametitle{Exercise 4}
-\label{sec-13}
+\frametitle{Question 4}
+\label{sec-10}
Print all the odd numbers from 1 to 50.
\end{frame}
\begin{frame}
\frametitle{Summary}
-\label{sec-14}
+\label{sec-11}
+
+ In this tutorial,we learnt to,
\begin{itemize}
-\item blocks in \texttt{python}
-\item indentation
-\item blocks in \texttt{ipython} interpreter
-\item \texttt{for} loop
-\item iterating over list using \texttt{for} loop
-\item \texttt{range()} function
+\item Create blocks in python using ``for
+\item Indent the blocks of code
+\item Iterate over a list using ``for`` loop
+\item Use the ``range()`` function
\end{itemize}
\end{frame}
\begin{frame}
-\frametitle{Thank you!}
-\label{sec-15}
\begin{block}{}
\begin{center}
- This spoken tutorial has been produced by the
- \textcolor{blue}{FOSSEE} team, which is funded by the
+ \textcolor{blue}{\Large THANK YOU!}
\end{center}
+ \end{block}
+\begin{block}{}
\begin{center}
- \textcolor{blue}{National Mission on Education through \\
- Information \& Communication Technology \\
- MHRD, Govt. of India}.
+ For more Information, visit our website\\
+ \url{http://fossee.in/}
\end{center}
\end{block}
\end{frame}
-\end{document}
+\end{document} \ No newline at end of file
diff --git a/getting_started_with_ipython/slides.org b/getting_started_with_ipython/slides.org
index a80c454..33998a3 100644
--- a/getting_started_with_ipython/slides.org
+++ b/getting_started_with_ipython/slides.org
@@ -32,14 +32,18 @@
*
#+begin_latex
\begin{center}
-\textcolor{blue}{Getting Started -- \texttt{ipython}}
+\vspace{12pt}
+\textcolor{blue}{\huge Getting started with \texttt{ipython}}
\end{center}
+\vspace{18pt}
\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{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_latex
@@ -111,7 +115,7 @@ MHRD, Govt. of India
3. question mark (?)
-* Acknowledgement
+*
#+begin_latex
\begin{block}{}
\begin{center}
diff --git a/getting_started_with_ipython/slides.tex b/getting_started_with_ipython/slides.tex
index ce10206..c0b33a1 100644
--- a/getting_started_with_ipython/slides.tex
+++ b/getting_started_with_ipython/slides.tex
@@ -1,4 +1,4 @@
-% Created 2011-05-04 Wed 12:02
+% Created 2011-05-13 Fri 16:49
\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}{Getting Started -- \texttt{ipython}}
+\vspace{12pt}
+\textcolor{blue}{\huge Getting started with \texttt{ipython}}
\end{center}
+\vspace{18pt}
\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{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}
@@ -178,8 +182,6 @@ round(2.484, 2)
\end{enumerate}
\end{frame}
\begin{frame}
-\frametitle{Acknowledgement}
-\label{sec-12}
\begin{block}{}
\begin{center}
diff --git a/getting_started_with_lists/slides.org b/getting_started_with_lists/slides.org
index d7213de..235b3f7 100644
--- a/getting_started_with_lists/slides.org
+++ b/getting_started_with_lists/slides.org
@@ -33,14 +33,18 @@
*
#+begin_latex
\begin{center}
-\textcolor{blue}{Getting started with Lists}
+\vspace{12pt}
+\textcolor{blue}{\huge Getting started with Lists}
\end{center}
+\vspace{18pt}
\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{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_latex
* Objectives
@@ -99,7 +103,7 @@ MHRD, Govt. of India
3. Using negative indices\\
nonempty = ['spam', 'eggs', 100, 1.234]\\
nonempty[-1]
-* Acknowledgement
+*
#+begin_latex
\begin{block}{}
\begin{center}
diff --git a/images/fossee-logo.png b/images/fossee-logo.png
new file mode 100644
index 0000000..49d1797
--- /dev/null
+++ b/images/fossee-logo.png
Binary files differ
diff --git a/images/iitb-logo.png b/images/iitb-logo.png
index adc802f..38ec17e 100644
--- a/images/iitb-logo.png
+++ b/images/iitb-logo.png
Binary files differ
diff --git a/loading_data_from_files/slides.org b/loading_data_from_files/slides.org
index 4691c98..ae693ac 100644
--- a/loading_data_from_files/slides.org
+++ b/loading_data_from_files/slides.org
@@ -32,14 +32,18 @@
*
#+begin_latex
\begin{center}
-\textcolor{blue}{Loading Data from Files}
+\vspace{12pt}
+\textcolor{blue}{\huge Loading Data from Files}}
\end{center}
+\vspace{18pt}
\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{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_latex
* Objectives
@@ -73,7 +77,7 @@ MHRD, Govt. of India
2. x = loadtxt("data.txt", unpack=True)
3. x = loadtxt("data.txt", unpack=True, delimiter=":")
-* Acknowledgement
+*
#+begin_latex
\begin{block}{}
\begin{center}
diff --git a/multiple_plots/script.rst b/multiple_plots/script.rst
index d3dcdfe..d154ca5 100644
--- a/multiple_plots/script.rst
+++ b/multiple_plots/script.rst
@@ -526,7 +526,7 @@ Here are some self assessment questions for you to solve
And the answers,
-1. The command "figure" can get us the individual plots seperately.
+1. The command "figure()" can get us the individual plots seperately.
2. The subplot command takes three arguments namely the number of rows followed by the
the number of columns and the plot number.Hence the first option is correct.
diff --git a/multiple_plots/slides.org b/multiple_plots/slides.org
index 1dea6b0..a6194a0 100644
--- a/multiple_plots/slides.org
+++ b/multiple_plots/slides.org
@@ -32,14 +32,18 @@
*
#+begin_latex
\begin{center}
-\textcolor{blue}{Multiple Plots}
+\vspace{12pt}
+\textcolor{blue}{\huge Multiple Plots }
\end{center}
+\vspace{18pt}
\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{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_latex
@@ -80,7 +84,19 @@ MHRD, Govt. of India
- switch between the plots and perform some operations on each
of them like saving the plots.
- create subplots and to switch between them.
-* Acknowledgement
+* Evaluation
+ 1. What command is used to get individual plots separately?.
+
+ 2. Which of the following is correct.
+
+ - subplot(numRows, numCols, plotNum)
+ - subplot(numRows, numCols)
+ - subplot(numCols, numRows)
+* Solutions
+ 1. figure()
+
+ 2. subplot(numRows, numCols, plotNum)
+*
#+begin_latex
\begin{block}{}
\begin{center}
diff --git a/other_types_of_plots/slides.org b/other_types_of_plots/slides.org
index 2a8e8e7..351b72c 100644
--- a/other_types_of_plots/slides.org
+++ b/other_types_of_plots/slides.org
@@ -32,14 +32,18 @@
*
#+begin_latex
\begin{center}
-\textcolor{blue}{Types of Plots}
+\vspace{12pt}
+\textcolor{blue}{\huge Other types of Plots}
\end{center}
+\vspace{18pt}
\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{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_latex
* Objectives
@@ -157,7 +161,7 @@ MHRD, Govt. of India
* Solutions
1. False
2. bar(x, y, fill=False, hatch='|')
-* Acknowledgement
+*
#+begin_latex
\begin{block}{}
\begin{center}
diff --git a/plotting_data/slides.org b/plotting_data/slides.org
index 72f5386..a0159d0 100644
--- a/plotting_data/slides.org
+++ b/plotting_data/slides.org
@@ -32,14 +32,18 @@
*
#+begin_latex
\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_latex
* Objectives
@@ -118,7 +122,7 @@ MHRD, Govt. of India
1. square(distance\_values)
2. plot(L,T,'r+')
-* Acknowledgement
+*
#+begin_latex
\begin{block}{}
\begin{center}
diff --git a/saving_plots/slides.org b/saving_plots/slides.org
index e0d3a05..26febd2 100644
--- a/saving_plots/slides.org
+++ b/saving_plots/slides.org
@@ -32,14 +32,18 @@
*
#+begin_latex
\begin{center}
-\textcolor{blue}{Saving Plots}
+\vspace{12pt}
+\textcolor{blue}{\huge Saving Plots}
\end{center}
+\vspace{18pt}
\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{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_latex
* Objectives
@@ -74,9 +78,9 @@ MHRD, Govt. of India
~vector graphics~
*** .png - Portable Network Graphics
~supports transparency~
-* Exercise 1
+* Question 1
Save the sine plot in the format EPS which can be embedded in LaTeX documents.
-* Exercise 2
+* Question 2
Save the sine plot in PDF, PS and SVG formats.
* Summary
@@ -89,7 +93,26 @@ MHRD, Govt. of India
- svg
- eps
- Locate files in the file system.
-* Acknowledgement
+* Evaluation
+ 1. Which command is used to save a plot.
+
+ - saveplot()
+ - savefig()
+ - savefigure()
+ - saveplt()
+
+ 2. ``savefig('sine.png')`` saves the plot in,
+
+ - The root directory ``/`` (on GNU/Linux, Unix based systems),
+ ``c:\`` (on windows).
+ - Will result in an error as full path is not supplied.
+ - The current working directory.
+ - Predefined directory like ``/documents``.
+* Solutions
+ 1. savefig()
+
+ 2. The current working directory
+*
#+begin_latex
\begin{block}{}
\begin{center}
diff --git a/using_plot_interactively/oldscript.rst b/using_plot_interactively/oldscript.rst
deleted file mode 100644
index cd2ee6a..0000000
--- a/using_plot_interactively/oldscript.rst
+++ /dev/null
@@ -1,226 +0,0 @@
-.. Objectives
-.. ----------
-
-.. By the end of this tutorial you will --
-
-.. 1. Create simple plots of mathematical functions
-.. #. Use the Figure window to study plots better
-
-
-
-.. Prerequisites
-.. -------------
-
-.. Installation of required tools
-.. Ipython
-
-.. Author : Amit Sethi
- Internal Reviewer :
- External Reviewer :
- Checklist OK? : <put date stamp here, if OK> [2010-10-05]
-
-Script
--------
-{{{ Show the Title Slide }}}
-
-Hello and welcome to the tutorial on creating simple plots using
-Python.This tutorial is presented by the Fossee group.
-
-I hope you have IPython running on your computer.
-
-In this tutorial we will look at plot command and also how to study
-the plot using the UI.
-
-{{{ Show Outline Slide }}}
-
-Lets start ipython on your shell, type ::
-
- $ipython -pylab
-
-
-Pylab is a python library which provides plotting functionality.It
-also provides many other important mathematical and scientific
-functions. After running IPython -pylab in your shell if at the top of
-the result of this command, you see something like ::
-
-
- `ERROR: matplotlib could NOT be imported! Starting normal
- IPython.`
-
-
-{{{ Slide with Error written on it }}}
-
-
-Then you have to install matplotlib and run this command again.
-
-Now type in your ipython shell ::
-
- linpace?
-
-
-
-as the documentation says, it returns `num` evenly spaced samples,
-calculated over the interval start and stop. To illustrate this, lets
-do it form 1 to 100 and try 100 points. ::
-
- linspace(1,100,100)
-
-As you can see a sequence of numbers from 1 to 100 appears.
-
-Now lets try 200 points between 0 and 1 you do this by typing ::
-
-
- linspace(0,1,200)
-
-0 for start , 1 for stop and 200 for no of points. In linspace
-the start and stop points can be integers, decimals , or
-constants. Let's try and get 100 points between -pi to pi. Type ::
-
- p = linspace(-pi,pi,100)
-
-
-'pi' here is constant defined by pylab. Save this to the variable, p
-.
-
-If you now ::
-
- len(p)
-
-You will get the no. of points. len function gives the no of elements
-of a sequence.
-
-
-Let's try and plot a cosine curve between -pi and pi using these
-points. Simply type::
-
- plot(p,cos(points))
-
-
-Here cos(points) gets the cosine value at every corresponding point to
-p.
-
-
-We can also save cos(points) to variable cosine and plot it using
-plot.::
-
- cosine=cos(points)
-
- plot(p,cosine)
-
-
-
-Now do ::
-
- clf()
-
-this will clear the plot.
-
-This is done because any other plot we try to make shall come on the
-same drawing area. As we do not wish to clutter the area with
-overlaid plots , we just clear it with clf(). Now lets try a sine
-plot. ::
-
-
- plot(p,sin(p))
-
-
-
-
-The Window on which the plot appears can be used to study it better.
-
-{{{ Show the slide with all the buttons on it }}}
-
-First of all moving the mouse around gives us the point where mouse
-points at.
-
-Also we have some buttons the right most among them is
-for saving the file.
-
-Just click on it specifying the name of the file. We will save the plot
-by the name sin_curve in pdf format.
-
-
-
-{{{ Show how to save the file }}}
-
-As you can see I can specify format of file from the dropdown.
-
-Formats like png ,eps ,pdf, ps are available.
-
-Left to the save button is the slider button to specify the margins.
-
-{{{ Show how to zoom. Press zoom button and specify region to zoom }}}
-
-Left to this is zoom button to zoom into the plot. Just specify the
-region to zoom into.
-
-{{{ Press Move button and move the axes. }}}
-
-The button left to it can be used to move the axes of the plot.
-
-{{{ Press Back and Forward Button }}}
-
-The next two buttons with a left and right arrow icons change the state of the
-plot and take it to the previous state it was in. It more or less acts like a
-back and forward button in the browser.
-
-{{{ Press home button }}}
-
-The last one is 'home' referring to the initial plot.
-
-
-
-
-Following is an exercise that you must do.
-
-%% %% Plot (sin(x)*sin(x))/x .
- 1. Save the plot by the sinsquarebyx.pdf in pdf format.
- 2. Zoom and find the maxima.
-
- 3. Bring it back to initial position.
-
-
-Please, pause the video here. Do the exercise and then continue.
-
-
-
-
-
-
-
-
-
-{{{ Summary Slide }}}
-
-In this tutorial we have looked at
-
-1. Starting Ipython with pylab
-
-2. Using linspace function to create `num` equaly spaced points in a region.
-
-3. Finding length of sequnces using len.
-
-4. Plotting mathematical functions using plot.
-
-4. Clearing drawing area using clf
-
-5. Using the UI of plot for studying it better . Using functionalities like save , zoom and moving the plots on x and y axis
-
-
- {{{ Show the "sponsored by FOSSEE" slide }}}
-
-
-
-This tutorial was created as a part of FOSSEE project, NME ICT, MHRD India
-
-
-
- Hope you have enjoyed and found it useful.
-
- Thankyou
-
-
-
-Author : Amit Sethi
-Internal Reviewer :
-Internal Reviewer 2 :
diff --git a/using_plot_interactively/slides.org b/using_plot_interactively/slides.org
index ab82eec..2d02d13 100644
--- a/using_plot_interactively/slides.org
+++ b/using_plot_interactively/slides.org
@@ -32,14 +32,18 @@
*
#+begin_latex
\begin{center}
-\textcolor{blue}{Using plot Interactively}
+\vspace{12pt}
+\textcolor{blue}{\huge Using Plot Interactively}
\end{center}
+\vspace{18pt}
\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{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_latex
* Objectives
@@ -91,7 +95,7 @@ MHRD, Govt. of India
1. linspace(-pi/2,pi/2,100)
2. clf()
3. len(sequence\_name)
-* Acknowledgement...
+*
#+begin_latex
\begin{block}{}
\begin{center}
@@ -106,4 +110,3 @@ MHRD, Govt. of India
\end{block}
#+end_latex
-