Hi all,
I have some issues with editing data. I have a program that reads a text file with data, does calculations to the data, and then displays it in a graph. There are 6 columns of data, so I want 6 different graphs. For every graph there are two things that needs to be done: calculating the mean and an offset. Now I want to edit data live, different for every graph. I want to be able to replace certain data points with NaN values. So lets say in a graph there is one data point that is abnormally high, I want to move two cursors to set the x-values, and to set an y-value, and then I want it to replace all the data points between the two x's and above the y with a NaN value. I also want this to work the other way around, so to replace values lower than a certain Y-value. I need the program to remember these alterations, and then be able to do the same for multiple points in that graph. I also need to be able to do this separately for every graph.
The problems I encounter are these:
- Remembering the alterations that are done. When I set a new area, the already altered area goes back to the original.
- Setting the cursors as coordinates. I know how to ask for the cursor coordinates with a property node, but I have trouble with passing that data.
- Doing this program for every graph. The final product will consist of approximately 30 graphs, so I was wondering if there is a way to do the above, without copying the program 30 times (or for now, 6 times).
Sorry if these questions are stupid, I'm still learning, and I get better at this every day
I've attached my program (yes, the real program now ) I've also attached the data that I use to read.
I know this is a lot, but some tips are very welcome.
Thanks in advance!!