This is a simple illustration that the
- code highlighting works
- plots are shown
This post that was exported from a Jupyiter notbook, as described in the previous post Introduction and Hello!
We start with importing numpy and matplotlib, two important python packages.
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:
X = np.array(range(200)) * np.pi/100
Y = np.sin(X)
plt.plot(X,Y)
plt.title('Sin function')
So, it works, hurray!