정리용

코랩 matplotlib 한글 깨짐 현상 해결 본문

시각화/파이썬

코랩 matplotlib 한글 깨짐 현상 해결

무룡룡 2022. 2. 20. 18:52
1. 해당 코드를 실행하여 폰트를 설치
 
 
!sudo apt-get install -y fonts-nanum
!sudo fc-cache -fv
!rm ~/.cache/matplotlib -rf
 

 

 
 
 
 
 
2. 런타임 다시시작 클릭
 
 

 

 

 

3. plt 로 font 를 설정해줬는지 다시한번 확인 !

 

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

 

 

Comments