xxxxxxxxxx
ax.plot([0, 0], [0, 0], [0, 10]) # extend in z direction
ax.plot([0, 0], [0, 8], [0, 0]) # extend in y direction
ax.plot([0, 9], [0, 0], [0, 0]) # extend in x direction
xxxxxxxxxx
import numpy as np, matplotlib.pyplot as plt
X, Y = np.random.uniform(-1, 1, (100)), np.random.uniform(-1, 1, (100))
t = np.arange(100)
fig = plt.figure()
ax = fig.add_subplot(projection='3d')
ax.scatter(X, Y, t)
plt.show()
xxxxxxxxxx
fig = plt.figure(figsize=(4,4))
ax = fig.add_subplot(111, projection='3d')
ax.scatter(2,3,4) # plot the point (2,3,4) on the figure
plt.show()
xxxxxxxxxx
plot_trisurf(X, Y, )
plot_trisurf(X, Y, triangles, )
plot_trisurf(X, Y, triangles=triangles, )