equal
deleted
inserted
replaced
27 \end{center} |
27 \end{center} |
28 |
28 |
29 \section{Plotting Points with Lists} |
29 \section{Plotting Points with Lists} |
30 |
30 |
31 \begin{lstlisting} |
31 \begin{lstlisting} |
32 In []: x = [0, 1, 2, 3] |
32 In []: x = [0, 1, 2, 3] # Creating a list |
33 In []: y = [7, 11, 15, 19] |
33 In []: y = [7, 11, 15, 19] |
34 In []: plot(x, y) |
34 In []: plot(x, y) |
35 In []: clf() |
35 In []: clf() |
36 In []: plot(x, y, 'o') # Plotting Circles |
36 In []: plot(x, y, 'o') # Plotting Circles |
37 \end{lstlisting} |
37 \end{lstlisting} |