So I currently have this code:
x_tot = []
y_tot = []
z_tot = []
for i in range(0, len(cont_all)):
x_tot.append(cont_all[i][:, 0])
y_tot.append(cont_all[i][:, 1])
z_tot.append(cont_all[i][:, 2])
print x_tot
In this case the cont_all is a list consisting of several arrays with x, y and z values, e.g:
array([[ -5.24, 81.67, -51. ],
[ -3.34, 80.73, -51. ],
[ -1.43, 80.24, -51. ]])
My idea was that I would like all the x-coordinates from all the arrays/lists in one list, and y-values the same way and so forth.
But running my code above, the print out in the end gives lists with x, y, and z-values but still with arrays inside. What am I doing wrong here since it don't append everything into one list and thereby removing the arrays?