I want to start two graph's at the same y-value (trig) independent of there corresponding x-value so I can compare those graph's.
So I've made a function which calculates the x-value of this y-value by interpolation. This gives me the exact x-value of the point of intersection.
In a next step I want to plot both graphs with the intersection point in both graphs at the same x-value. For this step I would like to shift the data from this (non-existing) interpolated intersect x-point.
The problem is that this intersect x-value is between to measurement points and the question is whether and how it is possible to shift the data over the x-axis to a certain point.
For example: Working with array G. The intersect point is between data point A(0.2, 1) and data point B(0.8, 2) The intersect point has coordinates (1.333,0.4)
I want to shift array G in such a way that intersect point (y=0.4) will have a x=0.