# 한글 폰트 설정 import koreanize_matplotlib # 그래프에 retina display 적용 %config InlineBackend.figure_format = 'retina' pd.Series([1, 3, 5, -7, 9]).plot(title="한글", figsize=(6, 1))
실행 결과

TIP
koreanize-matplotlib
한글 폰트 설정을 위한 koreanize-matplotlib이 설치되어 있지 않다면 다음과 같이 설치한다. 코랩에서는 노트북을 새로 열 때마다 설치해야 한다. 사용하지 않을 때는 #을 이용해 주석 처리해 둔다.
!pip install koreanize-matplotlib