matplotlib 한글폰트 사용하기
http://corazzon.github.io/matplotlib_font_setting
matplotlib 한글폰트 사용하기
20 November 2017 matplotlib 한글폰트 사용하기 1. 필요한 패키지를 가져옵니다. # 그래프를 노트북 안에 그리기 위해 설정 %matplotlib inline # 필요한 패키지와 라이브러리를 가져옴 import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.font_manager as fm # 그래프에서 마이너스 폰트 깨지는 문제에 대한 대처 mpl.rcPara
corazzon.github.io
Anaconda 설치 후 font를 설치한 경우라면 Anaconda에서 폰트를 인식하지 못하는데,
이럴 때는 아래 폴더를 삭제해 준다. (Windows 운영체제의 경우)
C:\Users\{사용자 이름}\.matplotlib
그러면 fontlist-v300.json 파일이 다시 생성된다.
그런데 이상하게 나눔폰트는 인식하는데, D2Coding 폰트는 이 파일에 들어있지 않았다.
[참조] https://stackoverflow.com/questions/26085867/matplotlib-font-not-found
matplotlib font not found
I'm trying to use the font "Heuristica" in my matplotlib plots, but it won't show up. I defined "Heuristica" on the first spot in the rcParameter font.serif --> no result I changed font.family to "
stackoverflow.com
jupyter notebook 에서 아래와 같이 해도 fontlist 파일을 다시 만든다.
- 폰트매니저 재빌드(최초1회만)
import matplotlib.font_manager as fm
fm._rebuild()
import matplotlib.font_manager as fm
fm._rebuild()
[출처] https://github.com/carpedm20/multi-speaker-tacotron-tensorflow/issues/13
[window10] 그래프 한글이 깨어지네요. · Issue #13 · carpedm20/multi-speaker-tacotron-tensorflow
그림과 같이 윈도10에서 한글이 깨어지네요. ubuntu에서는 한글정상적이었는데 한글인코딩 어떻게 설정해줘야 하나요?
github.com