Note
Go to the end to download the full example code.
EELS curve fitting#
Performs curve fitting to an EELS spectrum, plots the result and saves it as png file.
Create a model and fit it to the data.
Note
By default, generalized oscillator strength (GOS) calculated using density functional theory (DFT)
are used. Use the GOS parameter to change to use other GOS, for example GOS="dirac".
m = s.create_model(low_loss=low_loss)
m.enable_fine_structure()
m.multifit(kind="smart")
Plot the model fit result
m.plot()

Total running time of the script: (0 minutes 2.719 seconds)