matplotlib1 matplotlib에서 한글 출력하기 vscode에서 jupyter notebook 사용 중 plot 이미지의 font가 깨져서 나온다. 찾아보니 아래 내용을 적용하면 된다. 순서는 아래와 같다. 코드도 참조. cache 삭제 font 적용 # matplotlib cache 폴더 위치를 찾는다. # 폴더 안 파일 삭제할 것 matplotlib.get_cachedir() # 설치된 font를 확인 후 적용 sorted([f.name for f in matplotlib.font_manager.fontManager.ttflist]) matplotlib.rc('font', family='원하는 font 이름') 전역/개별 적용이 있는데, 편의상 전역 적용에 대한 내용만 남긴다. 2020. 8. 19. 이전 1 다음