Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- Numpy
- ai
- db
- mariaDB
- Analysis
- LIST
- 인공지능
- Linux
- mysql
- interface
- Github
- learning
- javascript
- Python
- centos
- data
- 자바
- Deep
- framework
- error
- SSH
- Spring
- git
- java
- Web
- 함수
- Server
- Pattern
- Security
- DeepLearning
Archives
- Today
- Total
PostIT
[Python/Data Analysis] Numpy 및 Matplotlib 사용하기 - Day 5 본문
Python/Data Analysis
[Python/Data Analysis] Numpy 및 Matplotlib 사용하기 - Day 5
shun10114 2017. 5. 24. 09:41# [Python/Data Analysis] Numpy 및 Matplotlib 사용하기 - Day 5
import numpy as np
import matplotlib.pyplot as plt
# 1 - Pyplot example
x = np.arange(0,6,0.1)
y = np.sin(x)
plt.plot(x,y)
plt.show()
# 2 - Pyplot example
a = np.arange(0, 6, 0.1)
b1 = np.sin(a)
b2 = np.cos(a)
plt.plot(a, b1, label="sin")
plt.plot(a, b2, linestyle="--", label="cos")
# a axis name
plt.xlabel("a")
plt.ylabel("b")
plt.title("sin & cos")
plt.legend()
plt.show()
# sin 2개는 기존 오류로 인한 문제. 1개가 정상.
'Python > Data Analysis' 카테고리의 다른 글
[Python/Data Analysis] Numpay - Universal Array Function - Day 7 (0) | 2017.06.08 |
---|---|
[Python/Data Analysis] Numpay - Array Tranposition 사용하기 - Day 6 (0) | 2017.06.08 |
[Python/Data Analysis] Numpy 및 Matplotlib 사용하기 - Day 3 (0) | 2017.05.23 |
[Python/Data Analysis] Numpy 및 Matplotlib 사용하기 - Day 2 (0) | 2017.05.23 |
[Python/Data Analysis] Numpy 및 Matplotlib 사용하기 - Day 1 (0) | 2017.05.23 |
Comments