np.logfit code example
Example 1: numpy exponential curve fit
>>> def func(x, a, b, c):
... return a * np.exp(-b * x) + c
Example 2: numpy exponential curve fit
>>> import matplotlib.pyplot as plt
>>> from scipy.optimize import curve_fit
>>> def func(x, a, b, c):
... return a * np.exp(-b * x) + c
>>> import matplotlib.pyplot as plt
>>> from scipy.optimize import curve_fit