[mathplotlib] 한글 깨짐
2023. 6. 12. 14:42
1. https://ddiri01.tistory.com/306
matplotlib, networkx에서 한글사용하기(windows)
import matplotlib.font_manager as fm from matplotlib import rc font_name = fm.FontProperties(fname="c:/Windows/Fonts/malgun.ttf").get_name() rc('font', family=font_name) 이렇게 하면 matplotlib의 title axis의 한글이 정상적으로 나옴. network
ddiri01.tistory.com
2. https://jinyes-tistory.tistory.com/70
[matplotlib] 한글 폰트 사용하기 + Font family [] not found 에러 해결방법
* Font family [] not found. Falling back to DejaVu Sans 에러의 경우 4번부터 시작 1. 폰트 디렉토리 위치 import matplotlib matplotlib.matplotlib_fname() 2. mpl-data 디렉토리로 이동 matplotlibrc 파일을 실행(메모장) Ctrl + f
jinyes-tistory.tistory.com
'업무 > 메모' 카테고리의 다른 글
[Gunicorn]max_requests와 max_requests_jitter (0) | 2023.11.09 |
---|---|
[개발환경 구성] 모놀로식 아키텍처 (0) | 2023.07.04 |
[Python] 이모지 제거 (0) | 2023.02.08 |
sanic 오류 (python, pip 버전 문제) (0) | 2023.01.31 |
[Python] 클래스에서 다른 클래스 값 가져오기, 변경하기 (0) | 2023.01.13 |