파이썬 matplotlib, seaborn 사용시 생기는 한글 깨짐 현상 해결 방법.

  1. 폰트 설치
!sudo apt-get install -y fonts-nanum
!sudo fc-cache -fv
!rm ~/.cache/matplotlib -rf
  1. 런타임 다시 시작.

  2. 폰트 설정

import matplotlib.pyplot as plt

plt.rc('font', family='NanumBarunGothic')

출처 : https://teddylee777.github.io/colab/colab-korean