- code highlighting works
- plots are shown

1 2 3 4 |
import numpy as np import matplotlib.pyplot as plt import matplotlib.style as style style.use('ggplot') |

Now we generate vectorised x and y values for plotting:

1 2 3 4 5 |
X = np.array(range(200)) * np.pi/100 Y = np.sin(X) plt.plot(X,Y) plt.title('Sin function') |