작업/python
matplot
한종서
2019. 11. 30. 15:38
import matplotlib.pyplot as plt
y=[1,3,7,5]
plt.plot(y)
plt.show()
%matplotlib qt #새창띄우기
plt.plot(y)
%matplotlib inline #jupyter에서 띄우기
plt.plot(y)
x=[3,5,7,9]
y=[1,3,7,5]
plt.plot(x,y)
x=[1,2,3,4]
y=[x*x for x in x]
plt.plot(x,y)