An option to set the reference for each variable as 'fixed' in the function editor
@sgerlach Can we add an option to the function editor to set the reference for each variable as 'fixed'?
Description
Assume the following scenario. You have a spreadsheet with the 'x' column and the 'y' column. The values for the y-column are defined as y = sin(x). Now assume you duplicate the spreadsheet and provide new values for the x-column in this new spreadsheet. You expect that the y-column values will be estimated from the x-values from this duplicated spreadsheet. This is of course not the case, so it is easy to make errors because of this. You will notice this behaviour if you have only two colunns, but if the number of columns is much bigger, then... Well, catching the mistake would not be easy.
So, can we add an option to the function editor to set the reference for each variable as 'fixed'. By default, the reference is not fixed, meaning the value of a variable would be derived from the spreadsheet the function has been defined for. If a variable is fixed, then it's values are always derived from the same spreadsheet it refers to.
I think we would also need a symbol to designate the column reference as fixed. Maybe we should just write the 'fx' symbol in red color? This would also ease the process of changing the reference from fixed to 'unfixed', if needed, by showing for which columns (variables) the references need to be updated.
Labplot Version
Budowa wydania 2.10.0-650-gbed7cab79
Aug 7 2023, 04:32:52
System: Windows 10 Version 2009
Język:English,United States (Rozdzielacz dziesiętny ',', Rozdzielacz grupy '.'
Ustawienia liczb: Rozdzielacz dziesiętny ',', Rozdzielacz grupy '.', Wykładniczy 'e', Cyfra zero '0', Procent '%', Znak licz ujemnych/dodatnich '+'/'-' (Uaktualniono po ponownym uruchomieniu)
Architektura: x86_64-little_endian-llp64
Jądro: winnt 10.0.19045
Kompilator C++: MSVC 19.29.30148.0
Flagi kompilatora C++: /DWIN32 /D_WINDOWS /GR /EHsc /wd4250 /wd4251 /wd4396 /wd4661 /Zc:__cplusplus -O2 -W3 -DPSAPI_VERSION=1