Matplotlib 에서 한글깨짐 해결
CODEDRAGON ㆍDevelopment/Python
반응형
Matplotlib 에서 한글깨짐 해결
· 한글깨짐 현상 발생
· 해결방법
한글깨짐 현상 발생
plt.plot(X, y, 'o') plt.ylim(-3, 3) plt.xlabel("특성") plt.ylabel("타깃") |
해결방법
from matplotlib import font_manager fontprop = font_manager.FontProperties(fname="c:/Windows/Fonts/malgun.ttf").get_name()
plt.plot(X, y, 'o') plt.ylim(-3, 3) plt.xlabel("특성", fontproperties=fontprop) plt.ylabel("타깃", fontproperties=fontprop) |
'Development > Python' 카테고리의 다른 글
list() (0) | 2018.08.03 |
---|---|
Jpype - 파이썬 패키지 (0) | 2018.08.01 |
Seaborn 패키지 (0) | 2018.07.20 |
시계열 자료(Time-Series Data) (0) | 2018.07.18 |
pandas pandas API Reference (0) | 2018.07.16 |