using-plot-interactively/script.rst
author anand
Fri, 12 Nov 2010 01:00:49 +0530
changeset 493 62b93bfac3cd
parent 467 501383b753c1
permissions -rw-r--r--
internal review not done for `getting started with symbolics`
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
362
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
     1
.. Objectives
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
     2
.. ----------
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
     3
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
     4
.. By the end of this tutorial you will --
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
     5
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
     6
.. 1. Create simple plots of mathematical functions
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
     7
.. #. Use the Figure window to study plots better
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
     8
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
     9
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
    10
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
    11
.. Prerequisites
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
    12
.. -------------
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
    13
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
    14
.. Installation of required tools
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
    15
.. Ipython
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
    16
     
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
    17
.. Author              : Amit Sethi
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
    18
   Internal Reviewer   : 
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
    19
   External Reviewer   :
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
    20
   Checklist OK?       : <put date stamp here, if OK> [2010-10-05]
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
    21
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
    22
Script
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
    23
-------
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
    24
{{{ Show the Title Slide }}} 
362
a77a27916f81 Added Objectives and other metadata
amit
parents: 342
diff changeset
    25
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    26
Hello and welcome to the tutorial on creating simple plots using
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    27
Python.This tutorial is presented by the Fossee group.  
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    28
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    29
I hope you have IPython running on your computer.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    30
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    31
In this tutorial we will look at plot command and also how to study
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    32
the plot using the UI.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    33
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    34
{{{ Show Outline Slide }}}
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    35
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    36
Lets start ipython on your shell, type :: 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    37
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    38
      $ipython -pylab
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    39
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    40
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    41
Pylab is a python library which provides plotting functionality.It
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    42
also provides many other important mathematical and scientific
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    43
functions. After running IPython -pylab in your shell if at the top of
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    44
the result of this command, you see something like ::
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    45
 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    46
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    47
   `ERROR: matplotlib could NOT be imported!  Starting normal
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    48
      IPython.`
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    49
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    50
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    51
{{{ Slide with Error written on it }}}
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    52
342
588b681e70c6 Added a few large questions and quickrefs
amit
parents: 321
diff changeset
    53
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    54
Then you have to install matplotlib and run this command again.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    55
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    56
Now type in your ipython shell ::
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    57
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
    58
             linpace?
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    59
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    60
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    61
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    62
as the documentation says, it returns `num` evenly spaced samples,
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    63
calculated over the interval start and stop.  To illustrate this, lets
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    64
do it form 1 to 100 and try 100 points.  ::
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    65
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
    66
            linspace(1,100,100)
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    67
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    68
As you can see a sequence of numbers from 1 to 100 appears.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    69
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    70
Now lets try 200 points between 0 and 1 you do this by typing ::
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    71
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    72
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
    73
             linspace(0,1,200)
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    74
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    75
0 for start , 1 for stop and 200 for no of points.  In linspace 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    76
the start and stop points can be integers, decimals , or
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    77
constants. Let's try and get 100 points between -pi to pi. Type ::
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    78
           
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
    79
             p = linspace(-pi,pi,100)
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    80
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    81
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    82
'pi' here is constant defined by pylab. Save this to the variable, p
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    83
.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    84
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    85
If you now ::
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    86
     
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
    87
	    len(p)
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    88
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    89
You will get the no. of points. len function gives the no of elements
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    90
of a sequence.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    91
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    92
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    93
Let's try and plot a cosine curve between -pi and pi using these
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
    94
points.  Simply type::
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    95
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
    96
	 plot(p,cos(points)) 
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    97
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    98
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    99
Here cos(points) gets the cosine value at every corresponding point to
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   100
p.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   101
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   102
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   103
We can also save cos(points) to variable cosine and plot it using
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   104
plot.::
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   105
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   106
          cosine=cos(points) 
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   107
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   108
	  plot(p,cosine)
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   109
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   110
 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   111
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   112
Now do ::
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   113
       	 
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   114
	  clf()
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   115
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   116
this will clear the plot.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   117
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   118
This is done because any other plot we try to make shall come on the
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   119
same drawing area. As we do not wish to clutter the area with
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   120
overlaid plots , we just clear it with clf().  Now lets try a sine
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   121
plot. ::
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   122
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   123
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   124
    	  plot(p,sin(p))
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   125
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   126
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   127
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   128
 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   129
The Window on which the plot appears can be used to study it better.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   130
342
588b681e70c6 Added a few large questions and quickrefs
amit
parents: 321
diff changeset
   131
{{{ Show the slide with all the buttons on it }}}
588b681e70c6 Added a few large questions and quickrefs
amit
parents: 321
diff changeset
   132
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   133
First of all moving the mouse around gives us the point where mouse
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   134
points at.  
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   135
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   136
Also we have some buttons the right most among them is
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   137
for saving the file. 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   138
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   139
Just click on it specifying the name of the file.  We will save the plot 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   140
by the name sin_curve in pdf format.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   141
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   142
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   143
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   144
{{{ Show how to save the file  }}}
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   145
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   146
As you can see I can specify format of file from the dropdown.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   147
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   148
Formats like png ,eps ,pdf, ps are available.
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   149
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   150
Left to the save button is the slider button to specify the margins.
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   151
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   152
{{{ Show how to zoom. Press zoom button and specify region to zoom }}}
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   153
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   154
Left to this is zoom button to zoom into the plot. Just specify the 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   155
region to zoom into.  
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   156
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   157
{{{ Press Move button and move the axes. }}}
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   158
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   159
The button left to it can be used to move the axes of the plot.  
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   160
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   161
{{{ Press Back and Forward Button }}}
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   162
 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   163
The next two buttons with a left and right arrow icons change the state of the 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   164
plot and take it to the previous state it was in. It more or less acts like a
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   165
back and forward button in the browser.  
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   166
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   167
{{{ Press home button }}}
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   168
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   169
The last one is 'home' referring to the initial plot.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   170
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   171
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   172
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   173
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   174
Following is an  exercise that you must do. 
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   175
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   176
%% %% Plot (sin(x)*sin(x))/x .
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   177
      1. Save the plot by the sinsquarebyx.pdf in pdf format.
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   178
      2. Zoom and find the maxima.
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   179
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   180
      3. Bring it back to initial position.
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   181
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   182
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   183
Please, pause the video here. Do the exercise and then continue. 
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   184
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   185
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   186
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   187
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   188
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   189
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   190
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   191
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   192
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   193
{{{ Summary Slide }}}
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   194
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   195
In this tutorial we have looked at 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   196
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   197
1. Starting Ipython with pylab 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   198
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   199
2. Using linspace function to create `num` equaly spaced points in a region.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   200
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   201
3. Finding length of sequnces using  len.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   202
 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   203
4. Plotting mathematical functions using plot.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   204
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   205
4. Clearing drawing area using clf 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   206
 
342
588b681e70c6 Added a few large questions and quickrefs
amit
parents: 321
diff changeset
   207
5. Using the UI of plot for studying it better . Using functionalities like save , zoom and moving the plots on x and y axis 
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   208
342
588b681e70c6 Added a few large questions and quickrefs
amit
parents: 321
diff changeset
   209
467
501383b753c1 Exercises and Slides added to Using plot interactively
Amit Sethi
parents: 409
diff changeset
   210
 {{{ Show the "sponsored by FOSSEE" slide }}}
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   211
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   212
 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   213
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   214
This tutorial was created as a part of FOSSEE project, NME ICT, MHRD India
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   215
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   216
 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   217
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   218
 Hope you have enjoyed and found it useful.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   219
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   220
 Thankyou
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   221
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   222
 
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   223
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   224
Author              : Amit Sethi
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   225
Internal Reviewer   :
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
   226
Internal Reviewer 2 :