I continue to output three-dimensional coordinates, and use these coordinates to output three-dimensional dynamic curves. Here is my code, but there is nothing in the figure.
plt.ion()
x = [0]
y = [0]
z = [0]
x_now = 0
fig = plt.figure()
ax1 = plt.axes(projection='3d')
for i in range(50):
plt.clf()
x_now = i * 1
x.append(x_now)
y.append(x_now)
z.append(x_now)
ax1.scatter3D(x, y, z)
plt.show()
plt.pause(0.1)