##기본 패턴 선차트,,,원형차트 막대차트 등으로 응용할수 있음
import matplotlib.pyplot as plt
x = [1,2,3]
y = [9,2,5]
x2 = [1,2,3]
y2 = [10,14,12]
plt.plot(x,y, label= 'A')
plt.plot(x2,y2, label='B')
plt.xlabel('Plot Number') #x축
plt.ylabel('Importatn var') #y축
plt.title('Interesting Graph\n check it out') #title
plt.legend() #옆에 label 붙이는 것
plt.show()
'코딩' 카테고리의 다른 글
Matplotlib Tutorials : 8 getting data from the internet (youtube sentdex) (0) | 2018.11.07 |
---|---|
Matplotlib Tutorials : 7 loading data from files(youtube sentdex) (0) | 2018.11.07 |
Matplotlib Tutorials : 16 matplotlib.animation (youtube sentdex) (0) | 2018.11.07 |
javascript : d3 라이브러리/ 구글차트 (1) | 2018.11.07 |
python 크롤링 : 기본 (0) | 2018.11.04 |