basic-plot.txt
changeset 4 4dee50d4804b
parent 0 67604aed10e0
child 5 76fe6a48386f
equal deleted inserted replaced
3:093edb39f292 4:4dee50d4804b
     1 * Script
     1 * Script
     2 
     2 
     3 In this tutorial, we will cover the basics of Plotting features available in Python. We shall use Ipython and pylab. Ipython is An Enhanced Interactive Python interpreter. It provides additional features like tab completion, help etc. pylab is python library which provides plotting functionality. 
     3 Hello, in this tutorial, we will cover the basics of Plotting features available in Python. We shall use Ipython and pylab. Ipython is An Enhanced Interactive Python interpreter. It provides additional features like tab completion, help etc. pylab is python library which provides plotting functionality. 
       
     4 
       
     5 I am assuming that you have them installed on your system.
     4 
     6 
     5 Lets start ipython. Open up your terminal and type the following. 
     7 Lets start ipython. Open up your terminal and type the following. 
     6 
     8 
     7 $ ipython -pylab
     9 $ ipython -pylab
       
    10 press RETURN
     8 
    11 
     9 This will give us a prompt where we can get started. 
    12 This will give us a prompt where we can get started. 
    10 
    13 
    11 First, we create an array with equally spaced points from 0 to 2*pi
    14 First, we create a sequence of equally spaced points from 0 to 2*pi
    12 In []: x = linspace(0, 2*pi, 100)
    15 In []: x = linspace(0, 2*pi, 100)
    13 
    16 
    14 We have passed three arguments to linspace function - the first point, the last point and the total number of points. 
    17 We have passed three arguments to linspace function - the first point, the last point and the total number of points. 
    15 lets see what is x
    18 lets see what is x
    16 In []: x
    19 In []: x