반응형
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
x = [1, 2, 3, 4, 5]
y = [2, 3, 5, 7, 11]
z = [1, 4, 6, 8, 10]
ax.plot(x, y, z)
plt.title('3D Plot')
plt.show()
반응형
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
x = [1, 2, 3, 4, 5]
y = [2, 3, 5, 7, 11]
z = [1, 4, 6, 8, 10]
ax.plot(x, y, z)
plt.title('3D Plot')
plt.show()