:orphan: .. _fitting_examples: =============================== Fitting (Least Squares) Gallery =============================== The **mrsimulator** library is easily integrable with other python-based libraries. In the following examples, we illustrate the use of LMFIT non-linear least-squares minimization python package to fit a simulation object to experimental dataset. .. raw:: html
.. raw:: html
1D Dataset Fitting '''''''''''''''''' .. raw:: html
.. raw:: html
.. only:: html .. image:: /fitting/1D_fitting/images/thumb/sphx_glr_plot_1_31P_Na2PO4_MAS_thumb.png :alt: :ref:`sphx_glr_fitting_1D_fitting_plot_1_31P_Na2PO4_MAS.py` .. raw:: html
³¹P MAS NMR of crystalline Na2PO4 (CSA)
.. raw:: html
.. only:: html .. image:: /fitting/1D_fitting/images/thumb/sphx_glr_plot_1_31p_Na2PO4_static_thumb.png :alt: :ref:`sphx_glr_fitting_1D_fitting_plot_1_31p_Na2PO4_static.py` .. raw:: html
³¹P static NMR of crystalline Na2PO4 (CSA)
.. raw:: html
.. only:: html .. image:: /fitting/1D_fitting/images/thumb/sphx_glr_plot_2_13C_glycine_960Hz_thumb.png :alt: :ref:`sphx_glr_fitting_1D_fitting_plot_2_13C_glycine_960Hz.py` .. raw:: html
¹³C MAS NMR of Glycine (CSA) [960 Hz]
.. raw:: html
.. only:: html .. image:: /fitting/1D_fitting/images/thumb/sphx_glr_plot_2_13C_glycine_multi_spectra_fit_thumb.png :alt: :ref:`sphx_glr_fitting_1D_fitting_plot_2_13C_glycine_multi_spectra_fit.py` .. raw:: html
¹³C MAS NMR of Glycine (CSA) multi-spectra fit
.. raw:: html
.. only:: html .. image:: /fitting/1D_fitting/images/thumb/sphx_glr_plot_2_PASS_cross_sections_thumb.png :alt: :ref:`sphx_glr_fitting_1D_fitting_plot_2_PASS_cross_sections.py` .. raw:: html
1D PASS/MAT sideband order cross-section
.. raw:: html
.. only:: html .. image:: /fitting/1D_fitting/images/thumb/sphx_glr_plot_3_Na2SiO3_thumb.png :alt: :ref:`sphx_glr_fitting_1D_fitting_plot_3_Na2SiO3.py` .. raw:: html
¹⁷O MAS NMR of crystalline Na₂SiO₃ (2nd order quad)
.. raw:: html
.. only:: html .. image:: /fitting/1D_fitting/images/thumb/sphx_glr_plot_4_11B_Quad_NMR_thumb.png :alt: :ref:`sphx_glr_fitting_1D_fitting_plot_4_11B_Quad_NMR.py` .. raw:: html
¹¹B MAS NMR of Lithium orthoborate crystal
.. raw:: html
.. only:: html .. image:: /fitting/1D_fitting/images/thumb/sphx_glr_plot_4_27Al_YAG_thumb.png :alt: :ref:`sphx_glr_fitting_1D_fitting_plot_4_27Al_YAG.py` .. raw:: html
²⁷Al MAS NMR of YAG (1st and 2nd order Quad)
.. raw:: html
.. only:: html .. image:: /fitting/1D_fitting/images/thumb/sphx_glr_plot_4_2H_quad_thumb.png :alt: :ref:`sphx_glr_fitting_1D_fitting_plot_4_2H_quad.py` .. raw:: html
²H MAS NMR of Methionine
.. raw:: html
.. only:: html .. image:: /fitting/1D_fitting/images/thumb/sphx_glr_plot_5_119Sn_sideband_thumb.png :alt: :ref:`sphx_glr_fitting_1D_fitting_plot_5_119Sn_sideband.py` .. raw:: html
¹¹⁹Sn MAS NMR of SnO
.. raw:: html
.. only:: html .. image:: /fitting/1D_fitting/images/thumb/sphx_glr_plot_6_139La_Ext_Czjzek_thumb.png :alt: :ref:`sphx_glr_fitting_1D_fitting_plot_6_139La_Ext_Czjzek.py` .. raw:: html
Extended Czjzek fitting of ¹³⁹La MAS NMR of La₀.₂Y₁.₈Si₂2O₇
.. raw:: html
.. only:: html .. image:: /fitting/1D_fitting/images/thumb/sphx_glr_plot_7_27Al_Extended_Czjzek_thumb.png :alt: :ref:`sphx_glr_fitting_1D_fitting_plot_7_27Al_Extended_Czjzek.py` .. raw:: html
Fitting a Czjzek Model
.. raw:: html
2D Dataset Fitting '''''''''''''''''' .. raw:: html
.. raw:: html
.. only:: html .. image:: /fitting/2D_fitting/images/thumb/sphx_glr_plot_1_LHistidine_PASS_thumb.png :alt: :ref:`sphx_glr_fitting_2D_fitting_plot_1_LHistidine_PASS.py` .. raw:: html
¹³C 2D MAT NMR of L-Histidine
.. raw:: html
.. only:: html .. image:: /fitting/2D_fitting/images/thumb/sphx_glr_plot_1_Rb2SO4_QMAT_thumb.png :alt: :ref:`sphx_glr_fitting_2D_fitting_plot_1_Rb2SO4_QMAT.py` .. raw:: html
⁸⁷Rb 2D QMAT NMR of Rb₂SO₄
.. raw:: html
.. only:: html .. image:: /fitting/2D_fitting/images/thumb/sphx_glr_plot_2_Coesite_DAS_thumb.png :alt: :ref:`sphx_glr_fitting_2D_fitting_plot_2_Coesite_DAS.py` .. raw:: html
¹⁷O 2D DAS NMR of Coesite
.. raw:: html
.. only:: html .. image:: /fitting/2D_fitting/images/thumb/sphx_glr_plot_3_RbNO3_MQMAS_thumb.png :alt: :ref:`sphx_glr_fitting_2D_fitting_plot_3_RbNO3_MQMAS.py` .. raw:: html
⁸⁷Rb 2D 3QMAS NMR of RbNO₃
.. raw:: html
.. only:: html .. image:: /fitting/2D_fitting/images/thumb/sphx_glr_plot_4_NiCl2.2D2O_shifting-d_thumb.png :alt: :ref:`sphx_glr_fitting_2D_fitting_plot_4_NiCl2.2D2O_shifting-d.py` .. raw:: html
NiCl₂.2D₂O, ²H (I=1) Shifting-d echo
.. raw:: html
.. toctree:: :hidden: :includehidden: /fitting/1D_fitting/index.rst /fitting/2D_fitting/index.rst .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: fitting_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: fitting_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_