Plotting a simple 3d numpy array using matplotlib
You can plot the result in 3D like this:
import matplotlib.pyplot as plt, numpy as npfrom mpl_toolkits.mplot3d import Axes3Dv= np.array([[1,2,3], [4,5,6], [7,8,9]])fig = plt.figure()ax = fig.add_subplot(111, projection='3d')ax.plot(v[:,0],v[:,1],v[:,2])plt.show()