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()