Dear all,
I was wondering if adding an offset to a ModelResult.plot_fit was possible ?
plot_fit is great for me because I am using a CompositeModel and I need to display the fitted data in a bigger interval than the fitted one. (To do so I use the
numpoints options in plot_fit.)
Do you know if an offset could be added to plot_fit? Thanks again for your help.
Cosme
Ex of a part of my code :
### Making the Model
mod = QuadraticModel() # background
pars = mod.make_params()
for i in range(n):
modi = PseudoVoigtModel(prefix='dho'+str(i)+'_')
modi.guess(y, x=x)
pars+= modi.make_params()
mod += modi
# INITIALISATION OF THE DATA NOT SHOWN
### FITTING
iteration_number = 2000
out = mod.fit(yfit, pars, x=xfit, max_nfev=iteration_number)
out.plot_fit(numpoints=10000, title=" ", datafmt=' ', fitfmt='k')