How to calculate the distance between points in three-dimensional space? I have three one-dimensional arrays, which are used to build a three-dimensional graph. I need to find the distance between the points. I would like to take the interval along the y axis, sort the points and find the length of the line, then the next interval, etc., and then add everything up. But I can't do it. Please tell me how I can do this or some other way of calculating. using Python
I tried using pdist, dividing the y axis into intervals