일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 차트
- MySQL
- Python
- plugin
- flask
- license delete
- Mac
- zip 암호화
- Java
- TensorFlow
- springboot
- token filter test
- API
- Test
- 파이썬
- zip 파일 암호화
- high level client
- aggregation
- Elasticsearch
- Kafka
- sort
- 900gle
- docker
- query
- ELASTIC
- License
- analyzer test
- licence delete curl
- aggs
- matplotlib
Archives
- Today
- Total
개발잡부
[matplotlib] two subplot chart sample 1 본문
반응형
import numpy as np
import matplotlib.pyplot as plt
def f(t):
return np.exp(-t) * np.cos(2*np.pi*t)
t1 = np.arange(0.0, 5.0, 0.1)
t2 = np.arange(0.0, 5.0, 0.02)
plt.figure()
plt.subplot(211)
plt.plot(t1, f(t1), color='tab:blue', marker='o')
plt.plot(t2, f(t2), color='black')
plt.subplot(212)
plt.plot(t2, np.cos(2*np.pi*t2), color='tab:orange', linestyle='--')
plt.show()
반응형
'Python > matplotlib' 카테고리의 다른 글
[matplotlib] 재현율 개선 쿼리와 일반쿼리 응답시간 비교 (0) | 2023.09.07 |
---|---|
[matplotlib] legend picking chart sample (0) | 2022.08.19 |
[matplotlib] pie chart sample 1 (0) | 2022.08.19 |
[matplotlib] line chart sample 2 (0) | 2022.08.19 |
[matplotlib] line chart sample 1 (0) | 2022.08.19 |
Comments