https://steadiness-193.tistory.com/149
Matplotlib - plt : 선그래프, xlabel, ylabel, title, legend(범례)
데이터 불러오기 서울에서 경기도로 이동한 인구 데이터 값 import matplotlib.pyplot as plt 한글 폰트 문제 해결 from matplotlib import font_manager, rc font_path = 'c:/Windows/Fonts/malgun.ttf' font_na..
steadiness-193.tistory.com
위 포스팅에서 만든 sr_kk 시리즈를 이용한다.
https://steadiness-193.tistory.com/162
Matplotlib - add_subplot
화면 분할하여 그래프를 여러 개 그리기 - axe 객체 활용 이 포스팅에선 우선 하나의 그래프를 ax 객체를 이용해서 그려본다. https://steadiness-193.tistory.com/149 Matplotlib - plt : 선그래프, xlabel, ylab..
steadiness-193.tistory.com
위 포스팅에선 대체적으로 ax객체로 그린 그래프를 꾸미는 방법을 살펴봤다.
이 포스팅에서는 그래프를 분할하는 것에 초점을 맞춰보자
하나의 그림틀을 2개 행으로 나눠서 분할하기
add_subplot(행의 크기, 열의 크기, 서브플롯 순서)에 의거해
그림틀이 2행 1열로 나뉘었으며
ax1이 첫번째, 즉 위 그림틀이며
ax2가 두번째, 즉 아래 그림틀이다.
sr_kk 시리즈를 이용하여
위에는 기본 점 그래프를 그리고
아래에는 조금 꾸민 선 그래프를 그려보자
결과
'시각화 > Matplotlib' 카테고리의 다른 글
Matplotlib - 그래프를 파일로 저장하기 : savefig (0) | 2020.07.22 |
---|---|
Matplotlib - add_subplot : set_xticks, set_xticklabels, tick_params (0) | 2020.07.22 |
Matplotlib - add_subplot (0) | 2020.07.22 |
Matplotlib - plt : xlim, ylim (0) | 2020.07.19 |
Matplotlib - 그래프 꾸미기 : marker, markerfacecolor, markersize, color, linewidth, linestyle (0) | 2020.07.19 |