Matplotlib
- 설치된 폰트 출력
import matplotlib.font_manager as fm
# 설치된 폰트 출력
font_list = [font.name for font in fm.fontManager.ttflist]
font_list[:5]
'''
['DejaVu Sans Mono',
'STIXGeneral',
'STIXGeneral',
'STIXSizeThreeSym',
'DejaVu Sans Display']
'''
- 한국어 폰트 설정
import matplotlib
matplotlib.rcParams['font.family']='malgun gothic'
Comments