반응형
https://hangeul.naver.com/font
네이버 글꼴 모음
네이버가 만든 150여종의 글꼴을 한번에 만나보세요
hangeul.naver.com
1. 나눔 글꼴 다운로드
2. C:\Windows\Fonts 폴더에 다운 받은 NanumGothic.ttf 파일을 복사
3. matplotlib 설정 파일 경로 출력 후 출력된 경로 복사
# 설정 파일 경로 출력
import matplotlib
print(matplotlib.matplotlib_fname())
4. 탐색기에서 복사한 경로를 붙여넣기하면 메모장으로 열 수 있다.
5. 메모장에서 font.family 를 검색(ctrl+f) 후 NanumGothic 으로 수정 후 저장(ctrl+s)
#font.family: NanumGothic
#font.style: normal
#font.variant: normal
#font.weight: normal
#font.stretch: normal
#font.size: 10.0
6. 메모장에서 axes.unicode_minus 를 검색(ctrl+f) 후 False 로 수정 후 저장(ctrl+s)
#axes.unicode_minus: False
7. 주피터 노트북 캐시 파일 삭제 - 아래 코드 실행 후 출력된 경로를 탐색기에 붙여넣기
# 캐시 파일 경로 출력
import matplotlib
print(matplotlib.get_cachedir())
8. 폴더 내 모든 파일을 삭제 후 주피터 노트북 재실행
반응형