Topic: Modifying point series with Python script
Greetings,
I'm learning Python in order to automate some operations on Point Series in Graph. FYI, I have programmed in C++ and LabVIEW in the past, so I'm not totally new to the coding world and object-oriented programming.
I believe I'd need to use the "GetPoint" method to get the current value of data points, apply my operations to the data, then use the "InsertPoint" and "DeletePoint" methods to replace the old data with the new modified one.
So I select my Point Series and check that
type(Graph.Selected)
confirms it's a "Data.TPointSeries"
From there, I should probably use something like :
Graph.Selected.GetPoint(self, *args)
to get the point values, but looking at your SWIG-generated ".py" code, I can't figure out what are the arguments that the GetPoint expects. The same interrogation applies to the InsertPoint and DeletePoint methods for my needs.
Maybe I'm wrong all the way too Could you please guide me a bit in extracting data from a Point Series and modifying it through the Python interface?
Thank you very much!
EDIT: just a sample script adding 1 to x and 2 to y coordinates of all points in a series could do the trick too if it's easier for you.