Hi. I want to draw something like graph in 3D. I wrote this for its points (vertices):
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
fig = plt.figure()
ax = Axes3D(fig)
ax.scatter([3,4,4,4,3,2,2,2], [3,3,3,4,4,4,5,5], [3,3,2,2,2,2,2,1],s=150, c='r')
ax.set_xlim3d(1, 5)
ax.set_ylim3d(1, 5)
ax.set_zlim3d(1, 5)
plt.show()
, but I don't know how to create 3dlines (edges). I want to connect the first vertex with the second, the second with the third, the third with the fourth and etc.