Python/matplotlib

[matplotlib] 한글깨짐

닉의네임 2022. 1. 18. 18:33
반응형

Windows OS

나눔고딕 폰트가 설치되어 있다면,

plt.rcParams['font.family'] = 'NanumGothic'

맑은고딕 폰트가 설치되어 있다면,

plt.rcParams['font.family'] = 'Malgun Gothic'

Mac OS

Apple Gothic 이 설치되어 있다면,

plt.rcParams['font.family'] = 'AppleGothic'

 

반응형