plt.plot(x, y, 'r-', alpha=0.7)
Here is what the above code is Doing:
1. We’re creating a figure object, which is the window that will contain our plot.
2. We’re creating a subplot object, which is the area on which we’ll plot our data.
3. We’re plotting our data.