So right now I have a fit routine that fits a composite model to a data set. It would return a graph like this on matplotlib. Is there any way to annotate each peak with the prefix of its individual model from the composite model?
Thank you!
So right now I have a fit routine that fits a composite model to a data set. It would return a graph like this on matplotlib. Is there any way to annotate each peak with the prefix of its individual model from the composite model?
Thank you!
You do not give enough information about your code to give you a full answer, but if you have the coordinates of your peaks and the text you want to place at each peak, juste use Axes.annotate()
. See Annotating Axes guide for more information