matplotlib - Gakgu/Gakgu.github.io GitHub Wiki
κ°μ
Matlab κ·Έλνλ₯Ό μμ±ν΄μ£Όλ νμ΄μ¬ λΌμ΄λΈλ¬λ¦¬.
μμ
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = fig.gca(projection='3d')
ax.set_xlim(-10, 10)
ax.set_xlim(-10, 10)
ax.set_xlim(-10, 10)
x = [-1, 0, 1, 2, 3, 4, 5]
y = [-3, -2, -1, 0, -1, -2, -3]
z = [10, 9, 8, 7, 6, 5, 4]
ax.plot(x, y, z)
plt.show()