Python: How to find the slope of a graph drawn using matplotlib?,plt.show()