plot_alg_decay_fit

  • full name: tenpy.tools.fit.plot_alg_decay_fit

  • parent module: tenpy.tools.fit

  • type: function

tenpy.tools.fit.plot_alg_decay_fit(plot_module, x, y, fit_par, xfunc=None, kwargs={}, plot_fit_args={})[source]

Given x, y, and fit_par (output from alg_decay_fit), produces a plot of the algebraic decay fit.

plot_module is matplotlib.pyplot, or a subplot. x, y are the data (real, 1-dimensional np.ndarray) fit_par is a triplet of numbers [a, b, c] that describes and algebraic decay (see alg_decay()). xfunc is an optional parameter that scales the x-axis in the resulting plot. kwargs is a dictionary, whoses key/items are passed to the plot function. plot_fit_args is a dictionary that controls how the fit is shown.