This spline-thing is not doing the same thing as the “C” option in the graph. It is probably the end point conditions but I have difficulties understanding the meaning of b1, e1, b2 and e2 from the code (maybe some more documentation in the classes’ description).
How do I get TSplineX to do the same as TGraph::Draw(“C”) (couldn’t find that in the code neither, got stuck on AppendPath)
How to substract two arrays with the x and y values (say 1000 points)?
Below is the simplest case of what I did with the result, note that I would like the splines to be as the red line:
I am looking at your problem again. There is no way, right now, to easily retrieve in vectors the points generated the TGraph::Smooth (the function used by the “C” option). This function receive the arrays to be smoothed as input, smooth them internally and draw the smoothed curve. So the smooted vectors are not visible outside this function. If you really need that functionnality we can try to implement it but that’s not a trivial change, it needs time. Let me know.