Fit a curve using matplotlib on loglog scale,plt.show()