there!
Let\'s say we have two numpy arrays with coordinates x and y, which describe a 2D path:
array_x = [2, 3, 4, 5, 4, 3.5, 3, 2, 1, ] array_y = [