LMFIT Contents Examples Download
Non-Linear Least-Squares Minimization and Curve-Fitting for Python FAQ Support Develop

Navigation

  • index
  • next |
  • previous |
  • [intro|
  • parameters|
  • minimize|
  • model|
  • built-in models|
  • confidence intervals|
  • bounds|
  • constraints|

Table of Contents

  • Examples gallery
  • Examples from the documentation

Previous topic

Release Notes

Next topic

Fit with Data in a pandas DataFrame

This Page

  • Show Source

Quick search

Examples gallery¶

Below are examples of the different things you can do with lmfit. Click on any image to see the complete source code and output.

We encourage users (i.e., YOU) to submit user-guide-style, documented, and preferably self-contained examples of how you use lmfit for inclusion in this gallery! Please note that many of the examples below currently do not follow these guidelines yet.

../_images/sphx_glr_example_use_pandas_thumb.png

Fit with Data in a pandas DataFrame¶

../_images/sphx_glr_example_expression_model_thumb.png

Using an ExpressionModel¶

../_images/sphx_glr_example_fit_with_inequality_thumb.png

Fit Using Inequality Constraint¶

../_images/sphx_glr_example_diffev_thumb.png

Fit Using differential_evolution Algorithm¶

../_images/sphx_glr_example_fit_with_bounds_thumb.png

Fit Using Bounds¶

../_images/sphx_glr_example_reduce_fcn_thumb.png

Fit Specifying Different Reduce Function¶

../_images/sphx_glr_example_fit_with_algebraic_constraint_thumb.png

Fit with Algebraic Constraint¶

../_images/sphx_glr_example_fit_multi_datasets_thumb.png

Fit Multiple Data Sets¶

../_images/sphx_glr_example_fit_with_derivfunc_thumb.png

Fit Specifying a Function to Compute the Jacobian¶

../_images/sphx_glr_example_Model_interface_thumb.png

Fit using the Model interface¶

../_images/sphx_glr_example_detect_outliers_thumb.png

Outlier detection via leave-one-out¶

../_images/sphx_glr_example_emcee_Model_interface_thumb.png

Emcee and the Model Interface¶

../_images/sphx_glr_example_confidence_interval_thumb.png

Calculate Confidence Intervals¶

../_images/sphx_glr_example_complex_resonator_model_thumb.png

Complex Resonator Model¶

../_images/sphx_glr_lmfit_emcee_model_selection_thumb.png

Model Selection using lmfit and emcee¶

../_images/sphx_glr_example_brute_thumb.png

Global minimization using the brute method (a.k.a. grid search)¶

Examples from the documentation¶

Below are all the examples that are part of the lmfit documentation.

../_images/sphx_glr_model_savemodel_thumb.png

doc_model_savemodel.py¶

../_images/sphx_glr_model_loadmodelresult_thumb.png

doc_model_loadmodelresult.py¶

../_images/sphx_glr_model_loadmodelresult2_thumb.png

doc_model_loadmodelresult2.py¶

../_images/sphx_glr_model_savemodelresult_thumb.png

doc_model_savemodelresult.py¶

../_images/sphx_glr_confidence_basic_thumb.png

doc_confidence_basic.py¶

../_images/sphx_glr_model_loadmodel_thumb.png

doc_model_loadmodel.py¶

../_images/sphx_glr_model_gaussian_thumb.png

doc_model_gaussian.py¶

../_images/sphx_glr_model_with_nan_policy_thumb.png

doc_model_with_nan_policy.py¶

../_images/sphx_glr_builtinmodels_stepmodel_thumb.png

doc_builtinmodels_stepmodel.py¶

../_images/sphx_glr_model_two_components_thumb.png

doc_model_two_components.py¶

../_images/sphx_glr_model_uncertainty_thumb.png

doc_model_uncertainty.py¶

../_images/sphx_glr_model_savemodelresult2_thumb.png

doc_model_savemodelresult2.py¶

../_images/sphx_glr_model_with_iter_callback_thumb.png

doc_model_with_iter_callback.py¶

../_images/sphx_glr_builtinmodels_nistgauss2_thumb.png

doc_builtinmodels_nistgauss2.py¶

../_images/sphx_glr_fitting_withreport_thumb.png

doc_fitting_withreport.py¶

../_images/sphx_glr_parameters_valuesdict_thumb.png

doc_parameters_valuesdict.py¶

../_images/sphx_glr_parameters_basic_thumb.png

doc_parameters_basic.py¶

../_images/sphx_glr_builtinmodels_peakmodels_thumb.png

doc_builtinmodels_peakmodels.py¶

../_images/sphx_glr_builtinmodels_nistgauss_thumb.png

doc_builtinmodels_nistgauss.py¶

../_images/sphx_glr_model_composite_thumb.png

doc_model_composite.py¶

../_images/sphx_glr_confidence_advanced_thumb.png

doc_confidence_advanced.py¶

../_images/sphx_glr_fitting_emcee_thumb.png

doc_fitting_emcee.py¶

Download all examples in Python source code: examples_python.zip

Download all examples in Jupyter notebooks: examples_jupyter.zip

Gallery generated by Sphinx-Gallery

Navigation

  • index
  • next |
  • previous |
  • [intro|
  • parameters|
  • minimize|
  • model|
  • built-in models|
  • confidence intervals|
  • bounds|
  • constraints|
© Copyright 2020, Matthew Newville, Till Stensitzki, and others. Created using Sphinx 2.3.1.