Julian-Hochhaus / LG4X-V2

A graphical user interface of Python lmfit package was developed for standard X-ray photoemission spectroscopy (XPS) curve fitting analysis. The interface streamlines the fitting procedures for validating results and their consistency.
https://julian-hochhaus.github.io/LG4X-V2/
Other
20 stars 9 forks source link

Add option to name peaks and peak legend in Matplotlib #51

Closed kevinsmia1939 closed 1 year ago

kevinsmia1939 commented 1 year ago

Hi, This is a feature request. Add an option to name peaks other than C_1, C_2, etc. This should also change the legend shown in the plot. I think this would be useful as part of exporting the XPS image from Matplotlib.

Julian-Hochhaus commented 1 year ago

Great idea! Due to the headers of QtTableWidget not being editable, I subclassed QtTableWidget.

However, I was not able to make the labels editable directly, but had to make a small edit-dialog which opens after double clicking the table header and enables the user to change the column header.

Enhancement is introduced on dev branch already!

kevinsmia1939 commented 1 year ago

Hi, I test it. It works. Thanks.