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