:orphan: .. _sphx_glr_examples: 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. .. raw:: html
.. only:: html .. figure:: /examples/images/thumb/sphx_glr_example_use_pandas_thumb.png :ref:`sphx_glr_examples_example_use_pandas.py` .. raw:: html
.. toctree:: :hidden: /examples/example_use_pandas .. raw:: html
.. only:: html .. figure:: /examples/images/thumb/sphx_glr_example_expression_model_thumb.png :ref:`sphx_glr_examples_example_expression_model.py` .. raw:: html
.. toctree:: :hidden: /examples/example_expression_model .. raw:: html
.. only:: html .. figure:: /examples/images/thumb/sphx_glr_example_fit_with_inequality_thumb.png :ref:`sphx_glr_examples_example_fit_with_inequality.py` .. raw:: html
.. toctree:: :hidden: /examples/example_fit_with_inequality .. raw:: html
.. only:: html .. figure:: /examples/images/thumb/sphx_glr_example_diffev_thumb.png :ref:`sphx_glr_examples_example_diffev.py` .. raw:: html
.. toctree:: :hidden: /examples/example_diffev .. raw:: html
.. only:: html .. figure:: /examples/images/thumb/sphx_glr_example_fit_with_bounds_thumb.png :ref:`sphx_glr_examples_example_fit_with_bounds.py` .. raw:: html
.. toctree:: :hidden: /examples/example_fit_with_bounds .. raw:: html
.. only:: html .. figure:: /examples/images/thumb/sphx_glr_example_reduce_fcn_thumb.png :ref:`sphx_glr_examples_example_reduce_fcn.py` .. raw:: html
.. toctree:: :hidden: /examples/example_reduce_fcn .. raw:: html
.. only:: html .. figure:: /examples/images/thumb/sphx_glr_example_fit_with_algebraic_constraint_thumb.png :ref:`sphx_glr_examples_example_fit_with_algebraic_constraint.py` .. raw:: html
.. toctree:: :hidden: /examples/example_fit_with_algebraic_constraint .. raw:: html
.. only:: html .. figure:: /examples/images/thumb/sphx_glr_example_fit_multi_datasets_thumb.png :ref:`sphx_glr_examples_example_fit_multi_datasets.py` .. raw:: html
.. toctree:: :hidden: /examples/example_fit_multi_datasets .. raw:: html
.. only:: html .. figure:: /examples/images/thumb/sphx_glr_example_fit_with_derivfunc_thumb.png :ref:`sphx_glr_examples_example_fit_with_derivfunc.py` .. raw:: html
.. toctree:: :hidden: /examples/example_fit_with_derivfunc .. raw:: html
.. only:: html .. figure:: /examples/images/thumb/sphx_glr_example_Model_interface_thumb.png :ref:`sphx_glr_examples_example_Model_interface.py` .. raw:: html
.. toctree:: :hidden: /examples/example_Model_interface .. raw:: html
.. only:: html .. figure:: /examples/images/thumb/sphx_glr_example_detect_outliers_thumb.png :ref:`sphx_glr_examples_example_detect_outliers.py` .. raw:: html
.. toctree:: :hidden: /examples/example_detect_outliers .. raw:: html
.. only:: html .. figure:: /examples/images/thumb/sphx_glr_example_emcee_Model_interface_thumb.png :ref:`sphx_glr_examples_example_emcee_Model_interface.py` .. raw:: html
.. toctree:: :hidden: /examples/example_emcee_Model_interface .. raw:: html
.. only:: html .. figure:: /examples/images/thumb/sphx_glr_example_confidence_interval_thumb.png :ref:`sphx_glr_examples_example_confidence_interval.py` .. raw:: html
.. toctree:: :hidden: /examples/example_confidence_interval .. raw:: html
.. only:: html .. figure:: /examples/images/thumb/sphx_glr_example_complex_resonator_model_thumb.png :ref:`sphx_glr_examples_example_complex_resonator_model.py` .. raw:: html
.. toctree:: :hidden: /examples/example_complex_resonator_model .. raw:: html
.. only:: html .. figure:: /examples/images/thumb/sphx_glr_lmfit_emcee_model_selection_thumb.png :ref:`sphx_glr_examples_lmfit_emcee_model_selection.py` .. raw:: html
.. toctree:: :hidden: /examples/lmfit_emcee_model_selection .. raw:: html
.. only:: html .. figure:: /examples/images/thumb/sphx_glr_example_brute_thumb.png :ref:`sphx_glr_examples_example_brute.py` .. raw:: html
.. toctree:: :hidden: /examples/example_brute .. raw:: html
.. _sphx_glr_examples_documentation: Examples from the documentation =============================== Below are all the examples that are part of the lmfit documentation. .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_model_savemodel_thumb.png :ref:`sphx_glr_examples_documentation_model_savemodel.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/model_savemodel .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_model_loadmodelresult_thumb.png :ref:`sphx_glr_examples_documentation_model_loadmodelresult.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/model_loadmodelresult .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_model_loadmodelresult2_thumb.png :ref:`sphx_glr_examples_documentation_model_loadmodelresult2.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/model_loadmodelresult2 .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_model_savemodelresult_thumb.png :ref:`sphx_glr_examples_documentation_model_savemodelresult.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/model_savemodelresult .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_confidence_basic_thumb.png :ref:`sphx_glr_examples_documentation_confidence_basic.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/confidence_basic .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_model_loadmodel_thumb.png :ref:`sphx_glr_examples_documentation_model_loadmodel.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/model_loadmodel .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_model_gaussian_thumb.png :ref:`sphx_glr_examples_documentation_model_gaussian.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/model_gaussian .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_model_with_nan_policy_thumb.png :ref:`sphx_glr_examples_documentation_model_with_nan_policy.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/model_with_nan_policy .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_builtinmodels_stepmodel_thumb.png :ref:`sphx_glr_examples_documentation_builtinmodels_stepmodel.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/builtinmodels_stepmodel .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_model_two_components_thumb.png :ref:`sphx_glr_examples_documentation_model_two_components.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/model_two_components .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_model_uncertainty_thumb.png :ref:`sphx_glr_examples_documentation_model_uncertainty.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/model_uncertainty .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_model_savemodelresult2_thumb.png :ref:`sphx_glr_examples_documentation_model_savemodelresult2.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/model_savemodelresult2 .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_model_with_iter_callback_thumb.png :ref:`sphx_glr_examples_documentation_model_with_iter_callback.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/model_with_iter_callback .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_builtinmodels_nistgauss2_thumb.png :ref:`sphx_glr_examples_documentation_builtinmodels_nistgauss2.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/builtinmodels_nistgauss2 .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_fitting_withreport_thumb.png :ref:`sphx_glr_examples_documentation_fitting_withreport.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/fitting_withreport .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_parameters_valuesdict_thumb.png :ref:`sphx_glr_examples_documentation_parameters_valuesdict.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/parameters_valuesdict .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_parameters_basic_thumb.png :ref:`sphx_glr_examples_documentation_parameters_basic.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/parameters_basic .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_builtinmodels_peakmodels_thumb.png :ref:`sphx_glr_examples_documentation_builtinmodels_peakmodels.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/builtinmodels_peakmodels .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_builtinmodels_nistgauss_thumb.png :ref:`sphx_glr_examples_documentation_builtinmodels_nistgauss.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/builtinmodels_nistgauss .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_model_composite_thumb.png :ref:`sphx_glr_examples_documentation_model_composite.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/model_composite .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_confidence_advanced_thumb.png :ref:`sphx_glr_examples_documentation_confidence_advanced.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/confidence_advanced .. raw:: html
.. only:: html .. figure:: /examples/documentation/images/thumb/sphx_glr_fitting_emcee_thumb.png :ref:`sphx_glr_examples_documentation_fitting_emcee.py` .. raw:: html
.. toctree:: :hidden: /examples/documentation/fitting_emcee .. raw:: html
.. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-gallery .. container:: sphx-glr-download :download:`Download all examples in Python source code: examples_python.zip ` .. container:: sphx-glr-download :download:`Download all examples in Jupyter notebooks: examples_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_