ComPlat / chemotion_ELN

Electronic Lab Notebook
https://www.chemotion.net
GNU Affero General Public License v3.0
125 stars 49 forks source link

CV: Changing ordinate and abscissa labels for plots with more than one graph #1737

Open tilfischer opened 8 months ago

tilfischer commented 8 months ago

Is your enhancement request related to a problem? Please describe. I wanted to change the labels of the ordinate (y-axis) and abszissa (x-axis) in ChemSpectra for CV data having two graphs (or more). I can do this via the drop down list at the top and this is written to the 1_bagit.edit.jdx of the selected first graph. When selecting the second graph, however, the drop down list pretends that it was also changed for the second graph but actually it was not. Consequently, one gets a combined figure with two labels on each axis. An way out is to also save this manually for the second graph.

Describe the solution you'd like When selecting the second graph, the selection for axis labels for the first graph should not be shown but the actually graph labels available in the 2_bagit.edit.jdx of that second graph.

Describe alternatives or extension you've considered Alternatively, when changing axis labels for the first graph, this should be also written to all other bagit.edit.jdx files present.

Video

https://drive.google.com/file/d/1s9Wl3YN8MdwyP-TDBGHTsuOwJjm889Fu/view?usp=sharing

Note: This is also connected to #1732 , but for the abszissa, the label changes but not the unit.

Best, Tillmann

herrdivad commented 7 months ago

@PiTrem @baolanlequang @tilfischer Planed for ELN Version >1.9. @baolanlequang: Could you have a look please and try to fix it on the current test server you currently use for the other functions I asked you to do. Would be nice to also have this fixed for Version 1.9 but as I understand it's only cosmetic because at least for the x-axis there are workarounds. In my opinion the fix should involve setting the drop-down back to default or reading the value from the bagit if it was already changed. I would not make it change all curves at once, but thats only my opinion.