plotting-files.txt
changeset 21 cc33c97ed034
parent 19 b77b9fce62d6
child 27 5712cc7589f9
equal deleted inserted replaced
20:571226041e79 21:cc33c97ed034
    14 #   - How to split a command
    14 #   - How to split a command
    15 #   - The plot command
    15 #   - The plot command
    16 #   - How to plot two variables
    16 #   - How to plot two variables
    17  
    17  
    18 So let's begin.  First we will input the data as lists and then we will plot it. 
    18 So let's begin.  First we will input the data as lists and then we will plot it. 
    19 So on the Terminal window type
    19 So on the IPython Interpreter we will type
    20 x = [0, 1, 2.1, 3.1, 4.2, 5.2]
    20 x = [0, 1, 2.1, 3.1, 4.2, 5.2]
    21 here x is a list. In python, list is a container that holds a number of objects. Various functions related to lists will be covered in more detail later. 
    21 here x is a list. In python, list is a container that holds a number of objects. Various functions related to lists will be covered in more detail later. 
    22 
    22 
    23 Now for the corresponding Y values type
    23 Now for the corresponding Y values type
    24 y = [0, 0.8, 0.9, 0, -0.9, -0.8]
    24 y = [0, 0.8, 0.9, 0, -0.9, -0.8]