반응형
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
- django
- numpy
- PostgreSQL
- matplotlib
- gas
- dataframe
- Google Excel
- Tkinter
- string
- PySpark
- Mac
- PANDAS
- google apps script
- Apache
- 파이썬
- c#
- array
- Github
- Redshift
- Kotlin
- Java
- math
- Python
- Excel
- SQL
- list
- hive
- GIT
- Google Spreadsheet
Archives
- Today
- Total
목록subplots (1)
달나라 노트
Python matplotlib : subplots (여러 개의 그래프 한 번에 그리기, 여러 개의 그래프 나타내기, 여러 좌표 동시에 나타내기)
matplotlib의 subplots는 여러 개의 그래프를 바둑판식으로 배열하여 나타내줍니다. 무슨 소리인지 하나씩 알아가봅시다. import matplotlib.pyplot as plt sub_plots = plt.subplots(nrows=3, ncols=2) fig = sub_plots[0] graph = sub_plots[1] fig.suptitle('Multiple plots') fig.tight_layout(pad=2) plt.show() 위 코드를 실행한 결과를 봅시다. 그래프가 총 6개가 생겼고 이것이 3행 2열의 형태로 배치되어있습니다. 이런식으로 subplots는 한번에 여러 개의 그래프를 동시에 그려줍니다. 그래프를 동시에 그린다는 의미가 xlim, ylim method를 사용할 때와..
Python/Python matplotlib
2022. 1. 19. 19:38