일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Web
- centos
- ai
- SSH
- Server
- Pattern
- 자바
- LIST
- Spring
- Github
- Analysis
- java
- Numpy
- 인공지능
- db
- mariaDB
- learning
- interface
- 함수
- mysql
- framework
- DeepLearning
- Python
- error
- data
- git
- Linux
- Security
- javascript
- Deep
- Today
- Total
목록matplotlib (3)
PostIT
# [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("..
# [Python/Data Analysis] Numpy 및 Matplotlib 사용하기 - Day 3import numpy as np arr = np.arange(0,11) arr2 = np.arange(0,11) arr array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10])arr[8] 8# Slice arr[1:5] array([1, 2, 3, 4]) arr[0:5] array([0, 1, 2, 3, 4]) arr[0:5] = 100 arr array([100, 100, 100, 100, 100, 5, 6, 7, 8, 9, 10])arr2[3:7] = 100 arr2 array([ 0, 1, 2, 100, 100, 100, 100, 7, 8, 9, 10])arr = np.arang..
# [Python/Data Analysis] Numpy 및 Matplotlib 사용하기 - Day 2 import numpy as np from __future__ import division 5/2 2.5 arr1 = np.array([[1,2,3,4], [8,9,10,11]]) arr1 array([[ 1, 2, 3, 4], [ 8, 9, 10, 11]]) arr1 * arr1 array([[ 1, 4, 9, 16], [ 64, 81, 100, 121]]) arr1 - arr1 array([[0, 0, 0, 0], [0, 0, 0, 0]]) 1 / arr1 array([[ 1. , 0.5 , 0.33333333, 0.25 ], [ 0.125 , 0.11111111, 0.1 , 0.09090909]])..