- Contents
- Examples
- Installation
- FAQ
- Support
- Develop

# 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.

Fit with Data in a pandas DataFrame

Using an ExpressionModel

Fit Using Inequality Constraint

Fit Using differential_evolution Algorithm

Fit Using Bounds

Fit Specifying Different Reduce Function

Building a lmfit model with SymPy

Fit with Algebraic Constraint

Fit Multiple Data Sets

Fit Specifying a Function to Compute the Jacobian

Fit using the Model interface

Outlier detection via leave-one-out

Calculate Confidence Intervals

Complex Resonator Model

Model Selection using lmfit and emcee

Fit Two Dimensional Peaks

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

Gallery generated by Sphinx-Gallery